diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-10-25 22:32:22 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-10-25 22:40:03 +0800 |
commit | 6ea6096c807b2d1e5da8743a5906209d83099a71 (patch) | |
tree | 6ef6c1bed63a0df168edc3ccfa2a8a2ad3f1c72a /e-util/test-source-selector.c | |
parent | e1d072684fa81c8ed7cb9656f02b278e9b2f7014 (diff) | |
download | gsoc2013-evolution-6ea6096c807b2d1e5da8743a5906209d83099a71.tar gsoc2013-evolution-6ea6096c807b2d1e5da8743a5906209d83099a71.tar.gz gsoc2013-evolution-6ea6096c807b2d1e5da8743a5906209d83099a71.tar.bz2 gsoc2013-evolution-6ea6096c807b2d1e5da8743a5906209d83099a71.tar.lz gsoc2013-evolution-6ea6096c807b2d1e5da8743a5906209d83099a71.tar.xz gsoc2013-evolution-6ea6096c807b2d1e5da8743a5906209d83099a71.tar.zst gsoc2013-evolution-6ea6096c807b2d1e5da8743a5906209d83099a71.zip |
ESourceSelector: Add a "show-icons" property.
ESourceSelector can now optionally display an icon next to each ESource
matching the selector's "extension-name". Intended for non-homogeneous
use cases where a variety of account types are shown in the selector.
The icon set is hard-coded, but we could change that if the need arises.
Diffstat (limited to 'e-util/test-source-selector.c')
-rw-r--r-- | e-util/test-source-selector.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/e-util/test-source-selector.c b/e-util/test-source-selector.c index 7a46fa5a07..f89c480520 100644 --- a/e-util/test-source-selector.c +++ b/e-util/test-source-selector.c @@ -69,7 +69,7 @@ on_idle_create_widget (ESourceRegistry *registry) GtkWidget *check; window = gtk_window_new (GTK_WINDOW_TOPLEVEL); - gtk_window_set_default_size (GTK_WINDOW (window), 200, 300); + gtk_window_set_default_size (GTK_WINDOW (window), 300, 400); g_signal_connect ( window, "delete-event", @@ -111,6 +111,16 @@ on_idle_create_widget (ESourceRegistry *registry) G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE); + check = gtk_check_button_new_with_label ("Show icons"); + gtk_widget_set_halign (check, GTK_ALIGN_FILL); + gtk_container_add (GTK_CONTAINER (vgrid), check); + + g_object_bind_property ( + selector, "show-icons", + check, "active", + G_BINDING_BIDIRECTIONAL | + G_BINDING_SYNC_CREATE); + check = gtk_check_button_new_with_label ("Show toggles"); gtk_widget_set_halign (check, GTK_ALIGN_FILL); gtk_container_add (GTK_CONTAINER (vgrid), check); |