summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/dialogs/snapshots.c48
-rw-r--r--src/gui/panels/history.c8
2 files changed, 28 insertions, 28 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));
}
diff --git a/src/gui/panels/history.c b/src/gui/panels/history.c
index 79be0dd..d6ca678 100644
--- a/src/gui/panels/history.c
+++ b/src/gui/panels/history.c
@@ -676,7 +676,7 @@ static void do_history_undo(GtkButton *button, GHistoryPanel *panel)
GtkTreeModel *model; /* Modèle de gestion de données*/
GtkTreeIter iter; /* Pointeur vers la ligne visée*/
GDbItem *item; /* Elément de collection */
- GHubClient *client; /* Connexion vers la base */
+ GAnalystClient *client; /* Connexion vers la base */
builder = gtk_built_named_widget_get_builder(GTK_BUILT_NAMED_WIDGET(G_PANEL_ITEM(panel)->widget));
@@ -691,7 +691,7 @@ static void do_history_undo(GtkButton *button, GHistoryPanel *panel)
gtk_tree_model_get(model, &iter, HTC_ITEM, &item, -1);
client = g_loaded_binary_get_client(panel->binary, true);
- g_hub_client_set_last_active(client, g_db_item_get_timestamp(item));
+ g_analyst_client_set_last_active(client, g_db_item_get_timestamp(item));
g_object_unref(G_OBJECT(client));
g_object_unref(G_OBJECT(item));
@@ -726,7 +726,7 @@ static void do_history_redo(GtkButton *button, GHistoryPanel *panel)
GtkTreeModel *model; /* Modèle de gestion de données*/
GtkTreeIter iter; /* Pointeur vers la ligne visée*/
GDbItem *item; /* Elément de collection */
- GHubClient *client; /* Connexion vers la base */
+ GAnalystClient *client; /* Connexion vers la base */
builder = gtk_built_named_widget_get_builder(GTK_BUILT_NAMED_WIDGET(G_PANEL_ITEM(panel)->widget));
@@ -739,7 +739,7 @@ static void do_history_redo(GtkButton *button, GHistoryPanel *panel)
gtk_tree_model_get(model, &iter, HTC_ITEM, &item, -1);
client = g_loaded_binary_get_client(panel->binary, true);
- g_hub_client_set_last_active(client, g_db_item_get_timestamp(item));
+ g_analyst_client_set_last_active(client, g_db_item_get_timestamp(item));
g_object_unref(G_OBJECT(client));
g_object_unref(G_OBJECT(item));