if UNINSTALLED
shareddir = $(abs_top_builddir)/data
+icondir = $(shareddir)/icons
else
shareddir = $(datadir)/rygel
+icondir = $(datadir)/icons/hicolor
endif
rygeldir = $(top_srcdir)/src/rygel
$(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
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;
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));