[rygel] ui: Set icon on the preferences dialog
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] ui: Set icon on the preferences dialog
- Date: Thu, 6 May 2010 23:42:48 +0000 (UTC)
commit 0c210bcdfda0d1f6c5d8fda9a3c9200d34e23b3f
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Fri May 7 02:42:26 2010 +0300
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 deletions(-)
---
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<PreferencesSection> ();
this.sections.add (new GeneralPrefSection (this.builder, this.config));
this.sections.add (new TrackerPrefSection (this.builder, this.config));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]