* 092_notebook-critical-warnings.patch: Fix removal of tab labels to not

ref and unref a NULL pointer. Patch from upstream SVN, see BGO #388321.
* 093_directfb-type-changes.patch: Define __u32 and __u8 to fix compilation
  with latest directfb from unstable while still supporting older versions.
  Patch from BGO #503190.
This commit is contained in:
Sebastian Dröge
2007-12-12 05:15:49 +00:00
parent e02065b3cd
commit 9403bbc169
4 changed files with 61 additions and 0 deletions

10
debian/changelog vendored
View File

@ -1,3 +1,13 @@
gtk+2.0 (2.12.3-2) unstable; urgency=low
* 092_notebook-critical-warnings.patch: Fix removal of tab labels to not
ref and unref a NULL pointer. Patch from upstream SVN, see BGO #388321.
* 093_directfb-type-changes.patch: Define __u32 and __u8 to fix compilation
with latest directfb from unstable while still supporting older versions.
Patch from BGO #503190.
-- Sebastian Dröge <slomo@debian.org> Wed, 12 Dec 2007 05:36:40 +0100
gtk+2.0 (2.12.3-1) unstable; urgency=low
* Let update-icon-caches skip args which are not dirs or don't exist; fixes

View File

@ -0,0 +1,25 @@
--- gtk-2-12/gtk/gtknotebook.c 2007/12/10 06:19:53 19139
+++ gtk-2-12/gtk/gtknotebook.c 2007/12/10 06:21:51 19140
@@ -4349,12 +4349,15 @@
gtk_widget_unparent (page->child);
tab_label = page->tab_label;
- g_object_ref (tab_label);
- gtk_notebook_remove_tab_label (notebook, page);
- if (destroying)
- gtk_widget_destroy (tab_label);
- g_object_unref (tab_label);
-
+ if (tab_label)
+ {
+ g_object_ref (tab_label);
+ gtk_notebook_remove_tab_label (notebook, page);
+ if (destroying)
+ gtk_widget_destroy (tab_label);
+ g_object_unref (tab_label);
+ }
+
if (notebook->menu)
{
gtk_container_remove (GTK_CONTAINER (notebook->menu),

View File

@ -0,0 +1,24 @@
Index: gtk+/gdk/directfb/gdkcursor-directfb.c
===================================================================
--- gtk+/gdk/directfb/gdkcursor-directfb.c (Revision 19163)
+++ gtk+/gdk/directfb/gdkcursor-directfb.c (Arbeitskopie)
@@ -39,6 +39,19 @@
#include "x-cursors.xbm"
+
+/* Workaround for DirectFB >= 1.0.0-rc2 not
+ * defining __u32 anymore when DIRECTFB_NO_CRUFT
+ * is set, which is the default on Debian systems.
+ */
+#ifndef __u32
+#define __u32 u32
+#endif
+
+#ifndef __u8
+#define __u8 u8
+#endif
+
static struct {
const guchar *bits;
int width, height, hotx, hoty;

View File

@ -20,3 +20,5 @@
060_ignore-random-icons.patch
070_mandatory-relibtoolize.patch
091_workaround_no_gtk_init_incorrect_display.patch
092_notebook-critical-warnings.patch
093_directfb-type-changes.patch