Commit ab6398f3 authored by Mike Gabriel's avatar Mike Gabriel

debian/patches: Drop 0001_fix-mwp-applet-segfaulting-while-loading.patch. Applied upstream.

parent 0377cb81
Description: Check for allocation = NULL. This fixes a segfault during applet load
Author: Daniel Schürmann <daschuer@mixxx.org>
Origin: http://git.mate-desktop.org/mate-netbook/patch/?id=551983e0fa42ee207f136e64ca4a8dea545bb57a
---
diff --git a/mate-window-picker-applet/task-item.c b/mate-window-picker-applet/task-item.c
index cafcb2c..366dea0 100644
--- a/mate-window-picker-applet/task-item.c
+++ b/mate-window-picker-applet/task-item.c
@@ -106,9 +106,11 @@ update_hints (TaskItem *item)
/* Set the minimize hint for the window */
gtk_widget_get_allocation (widget, allocation);
- wnck_window_set_icon_geometry (window, x, y,
+ if (allocation) {
+ wnck_window_set_icon_geometry (window, x, y,
allocation->width,
allocation->height);
+ }
}
static gboolean
diff --git a/mate-window-picker-applet/task-title.c b/mate-window-picker-applet/task-title.c
index 546e331..e81dfd3 100644
--- a/mate-window-picker-applet/task-title.c
+++ b/mate-window-picker-applet/task-title.c
@@ -407,7 +407,7 @@ on_expose (GtkWidget *eb, GdkEventExpose *event)
style = gtk_widget_get_style (eb);
state = gtk_widget_get_state (eb);
- if (state == GTK_STATE_ACTIVE)
+ if (state == GTK_STATE_ACTIVE && allocation)
gtk_paint_box (style,
#if GTK_CHECK_VERSION (3, 0, 0)
cr,
--
cgit
0001_fix-mwp-applet-segfaulting-while-loading.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment