summaryrefslogtreecommitdiff
path: root/baobab/src/callbacks.c
diff options
context:
space:
mode:
authorSteve Zesch <[email protected]>2012-11-18 20:50:09 -0500
committerSteve Zesch <[email protected]>2012-11-18 20:50:09 -0500
commit6552b09151c83c57041d72fc79a22f327ef5cb9f (patch)
treeef347a5a4f0e6f1071c33cce1fd3b17da631a6fb /baobab/src/callbacks.c
parente4d70e0aae8b9d03038247e48136209577eee5a6 (diff)
parenta344bc1e3cc9c03e1c1837c468a237bd15468b2a (diff)
downloadmate-utils-6552b09151c83c57041d72fc79a22f327ef5cb9f.tar.bz2
mate-utils-6552b09151c83c57041d72fc79a22f327ef5cb9f.tar.xz
Merge branch 'master' of github.com:mate-desktop/mate-utils
Diffstat (limited to 'baobab/src/callbacks.c')
-rw-r--r--baobab/src/callbacks.c82
1 files changed, 9 insertions, 73 deletions
diff --git a/baobab/src/callbacks.c b/baobab/src/callbacks.c
index 3dc8ede4..72894222 100644
--- a/baobab/src/callbacks.c
+++ b/baobab/src/callbacks.c
@@ -27,7 +27,6 @@
#include <string.h>
#include <gtk/gtk.h>
#include <glib/gi18n.h>
-#include <mateconf/mateconf-client.h>
#include <gio/gio.h>
#include "baobab.h"
@@ -39,6 +38,12 @@
#include "baobab-chart.h"
void
+on_quit_activate (GtkMenuItem *menuitem, gpointer user_data)
+{
+ baobab_quit ();
+}
+
+void
on_menuscanhome_activate (GtkMenuItem *menuitem, gpointer user_data)
{
baobab_scan_home ();
@@ -57,15 +62,9 @@ on_menuscandir_activate (GtkMenuItem *menuitem, gpointer user_data)
}
void
-on_esci1_activate (GtkObject *menuitem, gpointer user_data)
-{
- baobab_stop_scan ();
- gtk_main_quit ();
-}
-
-void on_about_activate(GtkMenuItem* menuitem, gpointer user_data)
+on_about_activate (GtkMenuItem *menuitem, gpointer user_data)
{
- const gchar* const authors[] = {
+ const gchar * const authors[] = {
"Fabio Marzocca <[email protected]>",
"Paolo Borelli <[email protected]>",
"BenoĆ®t Dejean <[email protected]>",
@@ -185,7 +184,7 @@ gboolean
on_delete_activate (GtkWidget *widget,
GdkEvent *event, gpointer user_data)
{
- on_esci1_activate (NULL, NULL);
+ baobab_quit ();
return TRUE;
}
@@ -265,36 +264,6 @@ on_ck_allocated_activate (GtkToggleAction *action,
}
void
-on_view_tb_activate (GtkToggleAction *action,
- gpointer user_data)
-{
- gboolean visible;
-
- visible = gtk_toggle_action_get_active (action);
- baobab_set_toolbar_visible (visible);
-
- mateconf_client_set_bool (baobab.mateconf_client,
- BAOBAB_TOOLBAR_VISIBLE_KEY,
- visible,
- NULL);
-}
-
-void
-on_view_sb_activate (GtkToggleAction *action,
- gpointer user_data)
-{
- gboolean visible;
-
- visible = gtk_toggle_action_get_active (action);
- baobab_set_statusbar_visible (visible);
-
- mateconf_client_set_bool (baobab.mateconf_client,
- BAOBAB_STATUSBAR_VISIBLE_KEY,
- visible,
- NULL);
-}
-
-void
on_helpcontents_activate (GtkAction *a, gpointer user_data)
{
baobab_help_display (GTK_WINDOW (baobab.window), "baobab", NULL);
@@ -359,36 +328,3 @@ on_chart_snapshot_cb (GtkCheckMenuItem *checkmenuitem, gpointer user_data)
baobab_chart_save_snapshot (baobab.current_chart);
}
-void
-on_chart_type_change (GtkWidget *combo, gpointer user_data)
-{
- GtkWidget *chart;
- GtkWidget *frame;
-
- guint active;
-
- active = gtk_combo_box_get_active (GTK_COMBO_BOX (combo));
-
- switch (active) {
- case 0:
- chart = baobab.rings_chart;
- break;
- case 1:
- chart = baobab.treemap_chart;
- break;
- default:
- g_return_if_reached ();
- }
-
- frame = gtk_widget_get_parent (baobab.current_chart);
-
- baobab_chart_freeze_updates (baobab.current_chart);
- baobab_chart_thaw_updates (chart);
-
- g_object_ref_sink (baobab.current_chart);
- gtk_container_remove (GTK_CONTAINER (frame), baobab.current_chart);
- gtk_container_add (GTK_CONTAINER (frame), chart);
-
- baobab.current_chart = chart;
-}
-