From 0234ac5204167b8ebd977261c49ab9ce2df4408f Mon Sep 17 00:00:00 2001 From: Mikko Vartiainen Date: Tue, 22 Sep 2009 22:49:06 +0300 Subject: [PATCH] Removed unused code --- src/eyes.c | 141 ------------------------------------------------------------ 1 file changed, 141 deletions(-) diff --git a/src/eyes.c b/src/eyes.c index 90772d2..31ba96b 100644 --- a/src/eyes.c +++ b/src/eyes.c @@ -249,97 +249,6 @@ eyes_applet_fill(EyesPluginContent *eyes) return TRUE; } - - - -/* -static void -combobox_changed (GtkComboBox *combobox, - EyesPluginContent *eyes) -{ - gchar *selected = gtk_combo_box_get_active_text (combobox); - - if (eyes->active_theme) - g_free (eyes->active_theme); - - eyes->active_theme = g_strdup (selected); - g_free (selected); - - properties_load(eyes); - setup_eyes(eyes); - eyes_applet_fill(eyes); -} -*/ - -/* -static void -eyes_properties_dialog (XfcePanelPlugin *plugin, - EyesPluginContent *eyes) -{ - GtkWidget *dlg, *hbox, *label, *combobox; - GDir *dir; - gint i; - gchar *current; - const gchar *entry; - - xfce_panel_plugin_block_menu (plugin); - - dlg = xfce_titled_dialog_new_with_buttons (_("Eyes"), - GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (plugin))), - GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_NO_SEPARATOR, - GTK_STOCK_CLOSE, GTK_RESPONSE_OK, - NULL); - - gtk_window_set_position (GTK_WINDOW (dlg), GTK_WIN_POS_CENTER); - gtk_window_set_icon_name (GTK_WINDOW (dlg), "xfce4-settings"); - - g_signal_connect (dlg, "response", G_CALLBACK (eyes_properties_dialog_response), - eyes); - - hbox = gtk_hbox_new(FALSE, 6); - gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->vbox), hbox, FALSE, FALSE, 0); - gtk_container_set_border_width (GTK_CONTAINER (hbox), 6); - - label = gtk_label_new_with_mnemonic (_("_Select a theme:")); - gtk_box_pack_start (GTK_BOX(hbox), label, FALSE, FALSE, 0); - - combobox = gtk_combo_box_new_text (); - gtk_box_pack_start (GTK_BOX (hbox), combobox, FALSE, TRUE, 0); - - if (eyes->active_theme) - current = g_strdup (eyes->active_theme); - else - current = g_strdup (DEFAULTTHEME); - - if ((dir = g_dir_open(THEMESDIR, 0, NULL)) == NULL) - { - gtk_combo_box_append_text (GTK_COMBO_BOX (combobox), current); - } - else - { - for (i = 0; (entry = g_dir_read_name(dir)) != NULL; i++) - { - gtk_combo_box_append_text (GTK_COMBO_BOX (combobox), entry); - - if (strcmp (entry, current) == 0) - gtk_combo_box_set_active (GTK_COMBO_BOX(combobox), i); - } - - g_dir_close(dir); - } - - g_free (current); - - gtk_label_set_mnemonic_widget (GTK_LABEL (label), combobox); - - g_signal_connect(G_OBJECT(combobox), "changed", - G_CALLBACK(combobox_changed), eyes); - - gtk_widget_show_all (dlg); -} -*/ - - /****************************** *** Panel Plugin Functions *** ******************************/ @@ -384,60 +293,10 @@ static void eyes_read_rc_file (EyesPluginContent *eyes) { g_warning ("eyes_read_rc"); -/* XfceRc *rc; - gchar *file; - gchar const *tmp; - - if (eyes->active_theme != NULL) - { - g_free (eyes->active_theme); - eyes->active_theme = NULL; - } - - if ((file = xfce_panel_plugin_lookup_rc_file (plugin)) != NULL) - { - rc = xfce_rc_simple_open (file, TRUE); - g_free (file); - - if (rc != NULL) - { - tmp = xfce_rc_read_entry (rc, "theme", DEFAULTTHEME); - - if (tmp != NULL) - eyes->active_theme = g_strdup (tmp); - - xfce_rc_close (rc); - } - } -*/ if (eyes->active_theme == NULL) eyes->active_theme = g_strdup (DEFAULTTHEME); } -/* -static void -eyes_write_rc_file (XfcePanelPlugin *plugin, - EyesPluginContent *eyes) -{ - gchar *file; - XfceRc *rc; - - if (!(file = xfce_panel_plugin_save_location (plugin, TRUE))) - return; - - rc = xfce_rc_simple_open (file, FALSE); - g_free (file); - - if (!rc) - return; - - if (eyes->active_theme != NULL) - xfce_rc_write_entry (rc, "theme", eyes->active_theme); - - xfce_rc_close (rc); -} -*/ - static EyesPluginContent * eyes_plugin_new () { -- 1.7.9.5