summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2010-02-03 20:22:00 +0100
committerGravatar Martin Szulecki2010-02-03 23:02:28 +0100
commita941288e94b9edc3be20f3010476d70fed4d7474 (patch)
tree74c6034d0da596c49cf1f1c0b9fe659b602d016d
parentc934a8cc889647821a54b9bdaa8bc45a93123c9d (diff)
downloadsbmanager-a941288e94b9edc3be20f3010476d70fed4d7474.tar.gz
sbmanager-a941288e94b9edc3be20f3010476d70fed4d7474.tar.bz2
Use current_uuid on load/save icon data instead of match_uuid
-rw-r--r--src/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index c83cc84..1ce5d47 100644
--- a/src/main.c
+++ b/src/main.c
@@ -84,7 +84,7 @@ static gboolean reload_button_clicked_cb(GtkButton *button, gpointer user_data)
{
gtk_widget_set_sensitive(btn_reload, FALSE);
gtk_widget_set_sensitive(btn_apply, FALSE);
- sbmgr_load(user_data, update_device_info_cb, finished_cb);
+ sbmgr_load(current_uuid, update_device_info_cb, finished_cb);
return TRUE;
}
@@ -92,7 +92,7 @@ static gboolean apply_button_clicked_cb(GtkButton *button, gpointer user_data)
{
gtk_widget_set_sensitive(btn_reload, FALSE);
gtk_widget_set_sensitive(btn_apply, FALSE);
- sbmgr_save(user_data);
+ sbmgr_save(current_uuid);
gtk_widget_set_sensitive(btn_reload, TRUE);
gtk_widget_set_sensitive(btn_apply, TRUE);
return TRUE;
@@ -224,8 +224,8 @@ static void wnd_init()
gtk_widget_show(toolbar);
/* set up signal handlers */
- g_signal_connect(btn_reload, "clicked", G_CALLBACK(reload_button_clicked_cb), match_uuid);
- g_signal_connect(btn_apply, "clicked", G_CALLBACK(apply_button_clicked_cb), match_uuid);
+ g_signal_connect(btn_reload, "clicked", G_CALLBACK(reload_button_clicked_cb), NULL);
+ g_signal_connect(btn_apply, "clicked", G_CALLBACK(apply_button_clicked_cb), NULL);
g_signal_connect(btn_info, "clicked", G_CALLBACK(info_button_clicked_cb), NULL);
g_signal_connect(btn_quit, "clicked", G_CALLBACK(quit_button_clicked_cb), NULL);