diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2019-10-27 22:33:11 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2019-10-27 23:10:41 (GMT) |
commit | 609c184c3edb350a0da7fe29bf449a7189080c92 (patch) | |
tree | 4ddd6320ee58a6169cad377f9889a08298fbec47 /src/gui/dialogs | |
parent | d0547bc36bd6ccb84eff128fc6e4f2df034a705a (diff) |
Implemented snapshot related management features.
Diffstat (limited to 'src/gui/dialogs')
-rw-r--r-- | src/gui/dialogs/snapshots.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/gui/dialogs/snapshots.c b/src/gui/dialogs/snapshots.c index 1fcea67..9f256c6 100644 --- a/src/gui/dialogs/snapshots.c +++ b/src/gui/dialogs/snapshots.c @@ -720,22 +720,11 @@ static void restore_old_snapshot(GtkToolButton *button, GtkBuilder *builder) static void create_new_snapshot(GtkToolButton *button, GtkBuilder *builder) { - const char *raw; /* Identifiant brut */ - snapshot_id_t id; /* Identifiant utilisable */ - bool status; /* Bilan d'une conversion */ GHubClient *client; /* Cible des interactions */ - raw = g_object_get_data(G_OBJECT(builder), "selected"); - - status = init_snapshot_id_from_text(&id, raw); - - if (status) - { - client = G_HUB_CLIENT(g_object_get_data(G_OBJECT(builder), "client")); - - g_hub_client_create_snapshot(client, &id); + client = G_HUB_CLIENT(g_object_get_data(G_OBJECT(builder), "client")); - } + g_hub_client_create_snapshot(client); } |