[Xfce4-commits] <xfce4-panel:devel> Add icon chooser dialog, not working yet.
Nick Schermer
nick at xfce.org
Tue Aug 11 20:35:11 CEST 2009
Updating branch refs/heads/devel
to 4780229d86229e15c20a6192ecb674481c4a9f75 (commit)
from b00cd0b70f66fcdf1ead0a1598f2deb9471d1368 (commit)
commit 4780229d86229e15c20a6192ecb674481c4a9f75
Author: Nick Schermer <nick at xfce.org>
Date: Mon Jun 22 18:27:10 2009 +0200
Add icon chooser dialog, not working yet.
plugins/launcher/launcher-dialog.c | 27 +++++++++++++++++++++++++++
1 files changed, 27 insertions(+), 0 deletions(-)
diff --git a/plugins/launcher/launcher-dialog.c b/plugins/launcher/launcher-dialog.c
index 5e7e193..2e6bf36 100644
--- a/plugins/launcher/launcher-dialog.c
+++ b/plugins/launcher/launcher-dialog.c
@@ -533,6 +533,29 @@ launcher_dialog_response (GtkWidget *widget,
static void
+launcher_dialog_editor_icon_chooser (GtkWidget *button,
+ LauncherPluginDialog *dialog)
+{
+ GtkWidget *window;
+
+ /* create icon chooser dialog */
+ window = exo_icon_chooser_dialog_new (_("Select Icon"),
+ GTK_WINDOW (gtk_widget_get_toplevel (button)),
+ GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
+ GTK_STOCK_OK, GTK_RESPONSE_OK, NULL);
+
+ if (gtk_dialog_run (GTK_DIALOG (window)) == GTK_RESPONSE_OK)
+ {
+
+ }
+
+ /* destroy */
+ gtk_widget_destroy (window);
+}
+
+
+
+static void
launcher_dialog_editor_write_value (XfceRc *rc,
GtkBuilder *builder,
const gchar *name,
@@ -921,6 +944,10 @@ launcher_dialog_show (LauncherPlugin *plugin)
g_signal_connect (G_OBJECT (object), "delete-event",
G_CALLBACK (exo_noop_true), NULL);
+ object = gtk_builder_get_object (builder, "item-icon");
+ g_signal_connect (G_OBJECT (object), "clicked",
+ G_CALLBACK (launcher_dialog_editor_icon_chooser), dialog);
+
/* enable sorting in the add dialog */
object = gtk_builder_get_object (builder, "add-store");
gtk_tree_sortable_set_sort_column_id (GTK_TREE_SORTABLE (object),
More information about the Xfce4-commits
mailing list