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 ***
******************************/
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 ()
{