From 1820645be88054fdf30feeac65514c78d4f1d54e Mon Sep 17 00:00:00 2001 From: Stefan Sauer Date: Fri, 14 Jan 2011 22:40:03 +0200 Subject: icon: add an application icon Set as default icons, so that it it used for windows and in about dialog. --- mediainfo/src/Makefile.am | 7 +- mediainfo/src/gst-mi.png | Bin 0 -> 6664 bytes mediainfo/src/gst-mi.svg | 660 ++++++++++++++++++++++++++++++++++++++++++++++ mediainfo/src/mi-app.vala | 5 + 4 files changed, 671 insertions(+), 1 deletion(-) create mode 100644 mediainfo/src/gst-mi.png create mode 100644 mediainfo/src/gst-mi.svg (limited to 'mediainfo') diff --git a/mediainfo/src/Makefile.am b/mediainfo/src/Makefile.am index ccadcb4..b4678b0 100644 --- a/mediainfo/src/Makefile.am +++ b/mediainfo/src/Makefile.am @@ -18,7 +18,12 @@ gst_mi_SOURCES = \ gst_mi_LDADD = \ $(MI_LIBS) -lgstinterfaces-0.10 -lgstpbutils-0.10 - + +pixmapsdir=$(pkgdatadir)/ui/icons +pixmaps_DATA=gst-mi.png + +EXTRA_DIST = gst-mi.png + BUILT_SOURCES = $(gst_mi_SOURCES:.vala=.c) CLEANFILES = \ diff --git a/mediainfo/src/gst-mi.png b/mediainfo/src/gst-mi.png new file mode 100644 index 0000000..25481b6 Binary files /dev/null and b/mediainfo/src/gst-mi.png differ diff --git a/mediainfo/src/gst-mi.svg b/mediainfo/src/gst-mi.svg new file mode 100644 index 0000000..3380f39 --- /dev/null +++ b/mediainfo/src/gst-mi.svg @@ -0,0 +1,660 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mediainfo/src/mi-app.vala b/mediainfo/src/mi-app.vala index 5c90968..ae0a6c3 100644 --- a/mediainfo/src/mi-app.vala +++ b/mediainfo/src/mi-app.vala @@ -35,6 +35,11 @@ public class MediaInfo.App : Window // configure the window set_title (_("GStreamer Media Info")); set_default_size (500, 350); + try { + set_default_icon_from_file (Config.PKGDATADIR + "/ui/icons/gst-mi.png"); + } catch (Error e) { + debug ("Application icon missing: %s: %s", e.domain.to_string (), e.message); + } destroy.connect (Gtk.main_quit); VBox vbox = new VBox( false, 0); -- cgit v1.2.3