From 56f8cf91e0c7de195cdecfc581e2d0f6ae62da58 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 9 Feb 2012 09:06:18 -0500 Subject: [PATCH] widget-factory: add the logo --- demos/widget-factory/Makefile.am | 11 +++++++++-- demos/widget-factory/gtk-logo-256.png | Bin 0 -> 10688 bytes demos/widget-factory/widget-factory.c | 8 +++++++- .../widget-factory/widget-factory.gresource.xml | 9 +++++++++ 4 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 demos/widget-factory/gtk-logo-256.png create mode 100644 demos/widget-factory/widget-factory.gresource.xml diff --git a/demos/widget-factory/Makefile.am b/demos/widget-factory/Makefile.am index 93bb927230..80b81fb584 100644 --- a/demos/widget-factory/Makefile.am +++ b/demos/widget-factory/Makefile.am @@ -3,7 +3,8 @@ include $(top_srcdir)/Makefile.decl bin_PROGRAMS = gtk3-widget-factory gtk3_widget_factory_SOURCES = \ - widget-factory.c + widget-factory.c \ + widget_factory_resources.c gtk3_widget_factory_DEPENDENCIES = \ $(top_builddir)/gtk/libgtk-3.la @@ -17,4 +18,10 @@ gtk3_widget_factory_LDADD = \ $(top_builddir)/gdk/libgdk-3.la \ $(top_builddir)/gtk/libgtk-3.la -EXTRA_DIST += widget-factory.ui +widget_factory_resources.c: widget-factory.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies $(srcdir)/widget-factory.gresource.xml) + $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate-source $< + +EXTRA_DIST += \ + widget-factory.ui \ + widget-factory.gresource.xml \ + gtk-logo-256.png diff --git a/demos/widget-factory/gtk-logo-256.png b/demos/widget-factory/gtk-logo-256.png new file mode 100644 index 0000000000000000000000000000000000000000..f488e4535c13c9a91e5260be26151d62be4f1a4c GIT binary patch literal 10688 zcmYj%2Q*yY7w#RS_Y%E^AUe?rMxuuhy>~&>gkaP`2q8p^UZO^#MHgM7M(@2d(OYz8 z-u3&x_10U~a%bkA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%!n)!x)<}*gCNLQ290xny^I0U#!ddK>P z;*fsXLNh>COVzN-fedWLrsZHs<6!Hbn&H8d;L)mL)%Dli+!wf@JoHDdh~sf>L4gY% zJjM0rIZPK`bx02nF4NlR**Vv|(}Lt(aIR9|R;(XHtol>2*}XvF4&wboMlwl4Pabky zUGm8d~swsz_FNUNX>F``;rI!LKwgyZXYdKuoZPG%jHk#qq5cH$+yb3%-12AK2U#f~X9 zujfH>NThi11eAI3{PLrGd!IpJ%#Q3Uz2JCJ2LLxzpL{#l{M!gXS}1EkKA0VQ9!dfR zR`Kq(BM<@0=Ek!K5Z&Uzd;3D*6#PMp+u%+BJZ?l92C~i$;=t2SHj?}9whVY%+n#-; zHL8a!z9L?W`gAlM8$qL5tJV=W_$(#u+RkkJnFk$U{cz+?oo1#Q6c+tfpL`N35YLkI z?&sH{kP*NVV$)ygb7v!Kn}7(QiZo!ix)xoD(_l{vjE;nI1?%@^dZR;x3WYMLzm4aEC#||t zG!<;Q<+<^yI5hAteL)S}Sa&D(jCca7^J*0I$I-AD-#=GZ@d$1*xS_(&0!FoB3Gz5+ zvP-}ErN6R=kt)Rz^AB0AYWnrmW>gd&DXcfp1RR+tuAj3Wr~059614-yX)&`tu12+* zDYS62E{M@{6~rSVXvp9Xq6GrpN0gApIVt83@dT?CV{)*1N6Eb>d6^wCFTnb1RYt!c z5ldnH3scJlb3_j#>u70(3RjY~!nzb0+(2QGERKFvhUx!1<9K)4F)11)*LtX2tw}N; R1Rlu*R282qls&Nw`9G)EaBBbn literal 0 HcmV?d00001 diff --git a/demos/widget-factory/widget-factory.c b/demos/widget-factory/widget-factory.c index 6bb2761adc..b693422f06 100644 --- a/demos/widget-factory/widget-factory.c +++ b/demos/widget-factory/widget-factory.c @@ -39,11 +39,14 @@ dark_toggled (GtkCheckMenuItem *item, gpointer data) static void show_about (GtkMenuItem *item, GtkWidget *window) { + GdkPixbuf *pixbuf; const gchar *authors[] = { "Andrea Cimitan", "Cosimo Cecchi" }; + pixbuf = gdk_pixbuf_new_from_resource ("/logos/gtk-logo-256.png", NULL); + gtk_show_about_dialog (GTK_WINDOW (window), "program-name", "GTK+ Widget Factory", "version", g_strdup_printf ("%s,\nRunning against GTK+ %d.%d.%d", @@ -56,8 +59,11 @@ show_about (GtkMenuItem *item, GtkWidget *window) "website", "http://www.gtk.org", "comments", "Program to demonstrate GTK+ themes and widgets", "authors", authors, + "logo", pixbuf, "title", "About GTK+ Widget Factory", NULL); + + g_object_unref (pixbuf); } int @@ -74,7 +80,7 @@ main (int argc, char *argv[]) dark = TRUE; builder = gtk_builder_new (); - gtk_builder_add_from_file (builder, "./widget-factory.ui", NULL); + gtk_builder_add_from_resource (builder, "/ui/widget-factory.ui", NULL); window = GTK_WIDGET (gtk_builder_get_object (builder, "window")); gtk_builder_connect_signals (builder, NULL); diff --git a/demos/widget-factory/widget-factory.gresource.xml b/demos/widget-factory/widget-factory.gresource.xml new file mode 100644 index 0000000000..79bad5ba25 --- /dev/null +++ b/demos/widget-factory/widget-factory.gresource.xml @@ -0,0 +1,9 @@ + + + + gtk-logo-256.png + + + widget-factory.ui + +