From 0c210bcdfda0d1f6c5d8fda9a3c9200d34e23b3f Mon Sep 17 00:00:00 2001 From: "Zeeshan Ali (Khattak)" Date: Fri, 7 May 2010 02:42:26 +0300 Subject: [PATCH] ui: Set icon on the preferences dialog --- src/ui/Makefile.am | 4 +++- src/ui/rygel-preferences-dialog.vala | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ui/Makefile.am b/src/ui/Makefile.am index ece8e78..8190238 100644 --- a/src/ui/Makefile.am +++ b/src/ui/Makefile.am @@ -1,7 +1,9 @@ if UNINSTALLED shareddir = $(abs_top_builddir)/data +icondir = $(shareddir)/icons else shareddir = $(datadir)/rygel +icondir = $(datadir)/icons/hicolor endif rygeldir = $(top_srcdir)/src/rygel @@ -16,7 +18,7 @@ AM_CFLAGS = $(LIBGUPNP_CFLAGS) \ $(LIBSOUP_CFLAGS) \ $(LIBDBUS_GLIB_CFLAGS) \ -I$(top_srcdir) -I$(rygeldir) -DDATA_DIR='"$(shareddir)"' \ - -include config.h + -DICON_DIR='"$(icondir)"' -include config.h bin_PROGRAMS = rygel-preferences diff --git a/src/ui/rygel-preferences-dialog.vala b/src/ui/rygel-preferences-dialog.vala index 065cda8..bf90656 100644 --- a/src/ui/rygel-preferences-dialog.vala +++ b/src/ui/rygel-preferences-dialog.vala @@ -27,6 +27,7 @@ using CStuff; public class Rygel.PreferencesDialog : GLib.Object { const string UI_FILE = BuildConfig.DATA_DIR + "/rygel-preferences.ui"; const string DIALOG = "preferences-dialog"; + const string ICON = BuildConfig.ICON_DIR + "/32x32/apps/rygel.png"; UserConfig config; Builder builder; @@ -42,6 +43,8 @@ public class Rygel.PreferencesDialog : GLib.Object { this.dialog = (Dialog) this.builder.get_object (DIALOG); assert (this.dialog != null); + this.dialog.set_icon_from_file (ICON); + this.sections = new ArrayList (); this.sections.add (new GeneralPrefSection (this.builder, this.config)); this.sections.add (new TrackerPrefSection (this.builder, this.config)); -- 2.7.4