diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2021-05-29 10:13:16 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2021-05-29 10:13:16 (GMT) |
commit | 3c493d4cd2c9e91a2cee08c80e3629ea75788605 (patch) | |
tree | 6d9483d4c8e2c3914ca47bb9e17d31201d266f30 /src/gui/dialogs | |
parent | ab7c898c87a1f235af6966941823cab502c550f6 (diff) |
Define roles for allowed connections to servers.
Diffstat (limited to 'src/gui/dialogs')
-rw-r--r-- | src/gui/dialogs/snapshots.c | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/src/gui/dialogs/snapshots.c b/src/gui/dialogs/snapshots.c index 8abbdf2..53fc7b0 100644 --- a/src/gui/dialogs/snapshots.c +++ b/src/gui/dialogs/snapshots.c @@ -60,7 +60,7 @@ static void on_server_selection_changed(GtkComboBox *, GtkBuilder *); static bool find_suitable_parent(GtkTreeModel *, GtkTreeIter *, const char *, GtkTreeIter *); /* Met à jour l'affichage avec une nouvelle liste d'instantanés. */ -static void on_snapshots_updated(GHubClient *, GtkBuilder *); +static void on_snapshots_updated(GAnalystClient *, GtkBuilder *); /* Réinitialise la zone d'affichage des informations. */ static void reset_information_area(GtkBuilder *); @@ -181,11 +181,11 @@ GtkWidget *create_snapshots_dialog(GLoadedBinary *binary, GtkWindow *parent, Gtk static void on_dialog_destroy(GtkWidget *dialog, GtkBuilder *builder) { - GHubClient *client; /* Cible des interactions */ + GAnalystClient *client; /* Cible des interactions */ /* Déconnexion de l'ancien */ - client = G_HUB_CLIENT(g_object_get_data(G_OBJECT(builder), "client")); + client = G_ANALYST_CLIENT(g_object_get_data(G_OBJECT(builder), "client")); if (client != NULL) g_signal_handlers_disconnect_by_func(client, on_snapshots_updated, builder); @@ -208,14 +208,14 @@ static void on_dialog_destroy(GtkWidget *dialog, GtkBuilder *builder) static void on_server_selection_changed(GtkComboBox *combo, GtkBuilder *builder) { - GHubClient *client; /* Cible des interactions */ + GAnalystClient *client; /* Cible des interactions */ gint active; /* Indice du serveur retenu */ GLoadedBinary *binary; /* Binaire en cours d'étude */ GtkTreeStore *store; /* Modèle de gestion */ /* Déconnexion de l'ancien */ - client = G_HUB_CLIENT(g_object_get_data(G_OBJECT(builder), "client")); + client = G_ANALYST_CLIENT(g_object_get_data(G_OBJECT(builder), "client")); if (client != NULL) g_signal_handlers_disconnect_by_func(client, on_snapshots_updated, builder); @@ -327,7 +327,7 @@ static bool find_suitable_parent(GtkTreeModel *model, GtkTreeIter *iter, const c * * ******************************************************************************/ -static void on_snapshots_updated(GHubClient *client, GtkBuilder *builder) +static void on_snapshots_updated(GAnalystClient *client, GtkBuilder *builder) { GtkTreeStore *store; /* Modèle de gestion */ snapshot_info_t *info; /* Liste d'instantanés présents*/ @@ -351,7 +351,7 @@ static void on_snapshots_updated(GHubClient *client, GtkBuilder *builder) gtk_tree_store_clear(store); - status = g_hub_client_get_snapshots(client, &info, &count); + status = g_analyst_client_get_snapshots(client, &info, &count); if (!status) { @@ -409,7 +409,7 @@ static void on_snapshots_updated(GHubClient *client, GtkBuilder *builder) /* Ajout de l'instantané courant */ - status = g_hub_client_get_current_snapshot(client, ¤t); + status = g_analyst_client_get_current_snapshot(client, ¤t); if (status) { @@ -692,7 +692,7 @@ static void restore_old_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 */ + GAnalystClient *client; /* Cible des interactions */ raw = g_object_get_data(G_OBJECT(builder), "selected"); @@ -700,9 +700,9 @@ static void restore_old_snapshot(GtkToolButton *button, GtkBuilder *builder) if (status) { - client = G_HUB_CLIENT(g_object_get_data(G_OBJECT(builder), "client")); + client = G_ANALYST_CLIENT(g_object_get_data(G_OBJECT(builder), "client")); - g_hub_client_restore_snapshot(client, &id); + g_analyst_client_restore_snapshot(client, &id); } @@ -724,11 +724,11 @@ static void restore_old_snapshot(GtkToolButton *button, GtkBuilder *builder) static void create_new_snapshot(GtkToolButton *button, GtkBuilder *builder) { - GHubClient *client; /* Cible des interactions */ + GAnalystClient *client; /* Cible des interactions */ - client = G_HUB_CLIENT(g_object_get_data(G_OBJECT(builder), "client")); + client = G_ANALYST_CLIENT(g_object_get_data(G_OBJECT(builder), "client")); - g_hub_client_create_snapshot(client); + g_analyst_client_create_snapshot(client); } @@ -750,7 +750,7 @@ static void remove_old_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 */ + GAnalystClient *client; /* Cible des interactions */ raw = g_object_get_data(G_OBJECT(builder), "selected"); @@ -758,9 +758,9 @@ static void remove_old_snapshot(GtkToolButton *button, GtkBuilder *builder) if (status) { - client = G_HUB_CLIENT(g_object_get_data(G_OBJECT(builder), "client")); + client = G_ANALYST_CLIENT(g_object_get_data(G_OBJECT(builder), "client")); - g_hub_client_remove_snapshot(client, &id, false); + g_analyst_client_remove_snapshot(client, &id, false); } @@ -785,7 +785,7 @@ static void delete_old_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 */ + GAnalystClient *client; /* Cible des interactions */ raw = g_object_get_data(G_OBJECT(builder), "selected"); @@ -793,9 +793,9 @@ static void delete_old_snapshot(GtkToolButton *button, GtkBuilder *builder) if (status) { - client = G_HUB_CLIENT(g_object_get_data(G_OBJECT(builder), "client")); + client = G_ANALYST_CLIENT(g_object_get_data(G_OBJECT(builder), "client")); - g_hub_client_remove_snapshot(client, &id, true); + g_analyst_client_remove_snapshot(client, &id, true); } @@ -820,7 +820,7 @@ static void apply_new_snapshot_info(GtkButton *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 */ + GAnalystClient *client; /* Cible des interactions */ GtkEntry *entry; /* Zone de saisie à actualiser */ raw = g_object_get_data(G_OBJECT(builder), "selected"); @@ -829,13 +829,13 @@ static void apply_new_snapshot_info(GtkButton *button, GtkBuilder *builder) if (status) { - client = G_HUB_CLIENT(g_object_get_data(G_OBJECT(builder), "client")); + client = G_ANALYST_CLIENT(g_object_get_data(G_OBJECT(builder), "client")); entry = GTK_ENTRY(gtk_builder_get_object(builder, "name")); - g_hub_client_set_snapshot_name(client, &id, gtk_entry_get_text(entry)); + g_analyst_client_set_snapshot_name(client, &id, gtk_entry_get_text(entry)); entry = GTK_ENTRY(gtk_builder_get_object(builder, "description")); - g_hub_client_set_snapshot_desc(client, &id, gtk_entry_get_text(entry)); + g_analyst_client_set_snapshot_desc(client, &id, gtk_entry_get_text(entry)); } |