[gtk-chtheme] fix compile

Tom Callaway spot at fedoraproject.org
Thu Mar 22 18:26:42 UTC 2012


commit f91d94e478e6914b20cfc3f94db12dcf0d27b84d
Author: Tom Callaway <spot at fedoraproject.org>
Date:   Thu Mar 22 14:26:39 2012 -0400

    fix compile

 gtk-chtheme-0.3.1-fix.patch |   23 +++++++++++++++++++++++
 gtk-chtheme.spec            |    7 ++++++-
 2 files changed, 29 insertions(+), 1 deletions(-)
---
diff --git a/gtk-chtheme-0.3.1-fix.patch b/gtk-chtheme-0.3.1-fix.patch
new file mode 100644
index 0000000..b623f64
--- /dev/null
+++ b/gtk-chtheme-0.3.1-fix.patch
@@ -0,0 +1,23 @@
+diff -up gtk-chtheme-0.3.1/about_dialog.c.fix gtk-chtheme-0.3.1/about_dialog.c
+--- gtk-chtheme-0.3.1/about_dialog.c.fix	2012-03-22 14:24:17.502746629 -0400
++++ gtk-chtheme-0.3.1/about_dialog.c	2012-03-22 14:24:20.537719693 -0400
+@@ -39,7 +39,6 @@ void show_about_dialog(void) {
+ 	GtkWidget* about_dlg = gtk_dialog_new();
+ 	gtk_window_set_title(GTK_WINDOW(about_dlg), "About");
+ 	gtk_window_set_resizable(GTK_WINDOW(about_dlg), FALSE);
+-	gtk_dialog_set_has_separator(GTK_DIALOG(about_dlg), FALSE);
+ 	gtk_container_set_border_width(GTK_CONTAINER(GTK_DIALOG(about_dlg)->vbox), 20);
+ 	
+ 	GtkWidget* about = GTK_WIDGET(gtk_label_new_from_pango_markup((ABOUT), GTK_JUSTIFY_CENTER));
+diff -up gtk-chtheme-0.3.1/theme_sel.c.fix gtk-chtheme-0.3.1/theme_sel.c
+--- gtk-chtheme-0.3.1/theme_sel.c.fix	2012-03-22 14:20:43.743651593 -0400
++++ gtk-chtheme-0.3.1/theme_sel.c	2012-03-22 14:23:34.217131165 -0400
+@@ -110,7 +110,7 @@ GtkWidget *create_theme_sel(void)
+ 		GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
+ 	gtk_container_add(GTK_CONTAINER(sw), theme_list);
+ 
+-	gtk_timeout_add(0, (GtkFunction)theme_list_focus, theme_list);
++	g_timeout_add(0, (GSourceFunc)theme_list_focus, theme_list);
+ 
+ 	return sw;
+ }
diff --git a/gtk-chtheme.spec b/gtk-chtheme.spec
index 119ee84..a361acc 100644
--- a/gtk-chtheme.spec
+++ b/gtk-chtheme.spec
@@ -1,6 +1,6 @@
 Name:		gtk-chtheme
 Version:	0.3.1
-Release:	9%{dist}
+Release:	10%{dist}
 Summary:	Gtk+ 2.0 theme preview and selection made slick
 
 Group:		User Interface/Desktops
@@ -10,6 +10,7 @@ Source0:	http://plasmasturm.org/code/%{name}/%{name}-%{version}.tar.bz2
 Source1:	%{name}.desktop
 Patch0:		%{name}-nostrip.patch
 Patch1:		%{name}-0.3.1-new-api.patch
+Patch2:		gtk-chtheme-0.3.1-fix.patch
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:	gtk2-devel desktop-file-utils
@@ -24,6 +25,7 @@ A large variety of widgets provides a comprehensive demonstration.
 %setup -q
 %patch0 -p0 -b .orig
 %patch1 -p1 -b .orig
+%patch2 -p1 -b .fix
 
 %build
 make %{?_smp_mflags}
@@ -50,6 +52,9 @@ rm -rf %{buildroot}
 %{_mandir}/man1/%{name}.*
 
 %changelog
+* Thu Mar 22 2012 Tom Callaway <spot at fedoraproject.org> - 0.3.1-10
+- fix compile
+
 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.3.1-9
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 


More information about the scm-commits mailing list