From 4273e743e442ce5bf2945b1a6f2b348a1eb1ce65 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Nov 01 2009 22:00:57 +0000 Subject: - Icon for main window (#532325) --- diff --git a/inkscape-20091101svn-icon.patch b/inkscape-20091101svn-icon.patch new file mode 100644 index 0000000..d2b8c4e --- /dev/null +++ b/inkscape-20091101svn-icon.patch @@ -0,0 +1,21 @@ +From: Lubomir Rintel + +Hot fix for #532325 [1] +Not upstreamable since it defeats the icon's theming. + +[1] https://bugzilla.redhat.com/show_bug.cgi?id=532325 + +Index: src/main.cpp +=================================================================== +--- src/main.cpp (revision 22548) ++++ src/main.cpp (working copy) +@@ -924,8 +924,7 @@ + gdk_event_handler_set((GdkEventFunc)snooper, NULL, NULL); + Inkscape::Debug::log_display_config(); + +- // Set default window icon. Obeys the theme. +- gtk_window_set_default_icon_name("inkscape"); ++ gtk_window_set_default_icon_from_file("/usr/share/pixmaps/inkscape.png", NULL); + // Do things that were previously in inkscape_gtk_stock_init(). + sp_icon_get_phys_size(GTK_ICON_SIZE_MENU); + Inkscape::UI::Widget::Panel::prep(); diff --git a/inkscape.spec b/inkscape.spec index fd203a0..49d7acd 100644 --- a/inkscape.spec +++ b/inkscape.spec @@ -1,6 +1,6 @@ Name: inkscape Version: 0.47 -Release: 0.16.pre4.20091101svn%{?dist} +Release: 0.17.pre4.20091101svn%{?dist} Summary: Vector-based drawing program using SVG Group: Applications/Productivity @@ -14,6 +14,7 @@ Source0: %{name}.tar.gz Patch0: inkscape-20090410svn-uniconv.patch Patch4: inkscape-20090410svn-formats.patch Patch5: inkscape-20090925svn-el5.patch +Patch6: inkscape-20091101svn-icon.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -131,6 +132,7 @@ graphics in W3C standard Scalable Vector Graphics (SVG) file format. %patch0 -p1 -b .uniconv %patch4 -p1 -b .formats %patch5 -p1 -b .el5 +%patch6 -p0 -b .japierdole # https://bugs.launchpad.net/inkscape/+bug/314381 # A couple of files have executable bits set, @@ -220,6 +222,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Mon Sep 07 2009 Lubomir Rintel - 0.47-0.17.pre4.20091101svn +- Icon for main window (#532325) + * Mon Sep 07 2009 Lubomir Rintel - 0.47-0.16.pre4.20091101svn - Move to a later snapshot - python-lxml and numpy seem to be rather popular, add them as hard deps