This commit is contained in:
Matthias Clasen 2011-10-17 22:55:00 -04:00
parent 3872329458
commit 43f5848eb2
4 changed files with 27 additions and 31 deletions

2
.gitignore vendored
View File

@ -10,3 +10,5 @@ gtk+-2.21.5.tar.bz2
/gtk+-2.24.3.tar.bz2 /gtk+-2.24.3.tar.bz2
/gtk+-2.24.4.tar.bz2 /gtk+-2.24.4.tar.bz2
/gtk+-2.24.5.tar.xz /gtk+-2.24.5.tar.xz
/gtk+-2.24.6.tar.xz
/gtk+-2.24.7.tar.xz

View File

@ -17,7 +17,7 @@
Summary: The GIMP ToolKit (GTK+), a library for creating GUIs for X Summary: The GIMP ToolKit (GTK+), a library for creating GUIs for X
Name: gtk2 Name: gtk2
Version: 2.24.5 Version: 2.24.7
Release: 1%{?dist} Release: 1%{?dist}
License: LGPLv2+ License: LGPLv2+
Group: System Environment/Libraries Group: System Environment/Libraries
@ -39,6 +39,7 @@ Patch8: tooltip-positioning.patch
#Patch14: gtk2-landscape-pdf-print.patch #Patch14: gtk2-landscape-pdf-print.patch
# https://bugzilla.gnome.org/show_bug.cgi?id=611313 # https://bugzilla.gnome.org/show_bug.cgi?id=611313
Patch15: window-dragging.patch Patch15: window-dragging.patch
Patch16: gtk2-schar.patch
BuildRequires: atk-devel >= %{atk_version} BuildRequires: atk-devel >= %{atk_version}
BuildRequires: glib2-devel >= %{glib2_version} BuildRequires: glib2-devel >= %{glib2_version}
@ -155,6 +156,7 @@ This package contains developer documentation for the GTK+ widget toolkit.
%patch8 -p1 -b .tooltip-positioning %patch8 -p1 -b .tooltip-positioning
#%patch14 -p1 -b .landscape-pdf-print #%patch14 -p1 -b .landscape-pdf-print
%patch15 -p1 -b .window-dragging %patch15 -p1 -b .window-dragging
%patch16 -p1 -b .schar
%build %build
(if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; CONFIGFLAGS=--enable-gtk-doc; fi; (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; CONFIGFLAGS=--enable-gtk-doc; fi;
@ -283,8 +285,6 @@ fi
/usr/bin/update-gtk-immodules %{_host} /usr/bin/update-gtk-immodules %{_host}
%files -f gtk20.lang %files -f gtk20.lang
%defattr(-, root, root)
%doc AUTHORS COPYING NEWS README %doc AUTHORS COPYING NEWS README
%{_bindir}/gtk-query-immodules-2.0* %{_bindir}/gtk-query-immodules-2.0*
%{_bindir}/update-gtk-immodules %{_bindir}/update-gtk-immodules
@ -307,7 +307,6 @@ fi
%{_libdir}/girepository-1.0 %{_libdir}/girepository-1.0
%files immodules %files immodules
%defattr(-, root, root)
%{_libdir}/gtk-2.0/%{bin_version}/immodules/im-am-et.so %{_libdir}/gtk-2.0/%{bin_version}/immodules/im-am-et.so
%{_libdir}/gtk-2.0/%{bin_version}/immodules/im-cedilla.so %{_libdir}/gtk-2.0/%{bin_version}/immodules/im-cedilla.so
%{_libdir}/gtk-2.0/%{bin_version}/immodules/im-cyrillic-translit.so %{_libdir}/gtk-2.0/%{bin_version}/immodules/im-cyrillic-translit.so
@ -322,11 +321,9 @@ fi
%config(noreplace) %{_sysconfdir}/gtk-2.0/im-multipress.conf %config(noreplace) %{_sysconfdir}/gtk-2.0/im-multipress.conf
%files immodule-xim %files immodule-xim
%defattr(-, root, root)
%{_libdir}/gtk-2.0/%{bin_version}/immodules/im-xim.so %{_libdir}/gtk-2.0/%{bin_version}/immodules/im-xim.so
%files devel -f gtk20-properties.lang %files devel -f gtk20-properties.lang
%defattr(-, root, root)
%{_libdir}/lib*.so %{_libdir}/lib*.so
%{_libdir}/gtk-2.0/include %{_libdir}/gtk-2.0/include
%{_includedir}/* %{_includedir}/*
@ -338,7 +335,6 @@ fi
%{_datadir}/gir-1.0 %{_datadir}/gir-1.0
%files devel-docs %files devel-docs
%defattr(-, root, root)
%{_datadir}/gtk-doc %{_datadir}/gtk-doc
# oops, man pages went missing # oops, man pages went missing
# %{_mandir}/man1/* # %{_mandir}/man1/*
@ -347,6 +343,12 @@ fi
%doc tmpdocs/examples %doc tmpdocs/examples
%changelog %changelog
* Mon Oct 17 2011 Matthias Clasen <mclasen@redhat.com> - 2.24.7-1
- Update to 2.24.7
* Tue Aug 30 2011 Matthias Clasen <mclasen@redhat.com> - 2.24.6-1
- Update to 2.24.6
* Fri Jun 17 2011 Tomas Bzatek <tbzatek@redhat.com> - 2.24.5-1 * Fri Jun 17 2011 Tomas Bzatek <tbzatek@redhat.com> - 2.24.5-1
- Update to 2.24.5 - Update to 2.24.5

View File

@ -1 +1 @@
f229b6de6699b898682939bc5baa0c61 gtk+-2.24.5.tar.xz 719df30b5076a0e37b62f968a5e1312c gtk+-2.24.7.tar.xz

View File

@ -1,8 +1,7 @@
diff --git a/gtk/gtkmenushell.c b/gtk/gtkmenushell.c diff -up gtk+-2.24.7/gtk/gtkmenushell.c.window-dragging gtk+-2.24.7/gtk/gtkmenushell.c
index 4788590..cb94c64 100644 --- gtk+-2.24.7/gtk/gtkmenushell.c.window-dragging 2011-08-15 22:30:52.000000000 -0400
--- a/gtk/gtkmenushell.c +++ gtk+-2.24.7/gtk/gtkmenushell.c 2011-10-17 19:50:52.180468086 -0400
+++ b/gtk/gtkmenushell.c @@ -589,18 +589,45 @@ gtk_menu_shell_button_press (GtkWidget
@@ -585,18 +585,45 @@ gtk_menu_shell_button_press (GtkWidget *widget,
if (!menu_shell->active || !menu_shell->button) if (!menu_shell->active || !menu_shell->button)
{ {
@ -55,26 +54,20 @@ index 4788590..cb94c64 100644
} }
} }
} }
diff --git a/gtk/gtktoolbar.c b/gtk/gtktoolbar.c diff -up gtk+-2.24.7/gtk/gtktoolbar.c.window-dragging gtk+-2.24.7/gtk/gtktoolbar.c
index 8f065a7..c72a09f 100644 --- gtk+-2.24.7/gtk/gtktoolbar.c.window-dragging 2011-10-01 11:29:06.000000000 -0400
--- a/gtk/gtktoolbar.c +++ gtk+-2.24.7/gtk/gtktoolbar.c 2011-10-17 19:52:56.104463657 -0400
+++ b/gtk/gtktoolbar.c @@ -2701,6 +2701,8 @@ static gboolean
@@ -2699,17 +2699,41 @@ static gboolean
gtk_toolbar_button_press (GtkWidget *toolbar, gtk_toolbar_button_press (GtkWidget *toolbar,
GdkEventButton *event) GdkEventButton *event)
{ {
+ GtkWidget *window; + GtkWidget *window;
+ +
if (event->button == 3) if (_gtk_button_event_triggers_context_menu (event))
{ {
gboolean return_value; gboolean return_value;
- @@ -2711,7 +2713,29 @@ gtk_toolbar_button_press (GtkWidget
+
g_signal_emit (toolbar, toolbar_signals[POPUP_CONTEXT_MENU], 0,
(int)event->x_root, (int)event->y_root, event->button,
&return_value);
-
+
return return_value; return return_value;
} }
- -
@ -104,11 +97,10 @@ index 8f065a7..c72a09f 100644
return FALSE; return FALSE;
} }
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c diff -up gtk+-2.24.7/gtk/gtkwidget.c.window-dragging gtk+-2.24.7/gtk/gtkwidget.c
index 58ce2db..921c22a 100644 --- gtk+-2.24.7/gtk/gtkwidget.c.window-dragging 2011-10-17 19:50:52.175468086 -0400
--- a/gtk/gtkwidget.c +++ gtk+-2.24.7/gtk/gtkwidget.c 2011-10-17 19:50:52.184468086 -0400
+++ b/gtk/gtkwidget.c @@ -2467,6 +2467,13 @@ gtk_widget_class_init (GtkWidgetClass *k
@@ -2443,6 +2443,13 @@ gtk_widget_class_init (GtkWidgetClass *klass)
0.0, 1.0, 0.04, 0.0, 1.0, 0.04,
GTK_PARAM_READABLE)); GTK_PARAM_READABLE));