summaryrefslogtreecommitdiff
path: root/src/gui/dialogs
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/dialogs')
-rw-r--r--src/gui/dialogs/snapshots.c48
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, &current);
+ status = g_analyst_client_get_current_snapshot(client, &current);
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));
}