summaryrefslogtreecommitdiff
path: root/applets/notification_area/system-tray
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2018-07-01 14:48:44 -0400
committerraveit65 <[email protected]>2018-07-28 11:24:27 +0200
commita5a079b5c83b292706ebae0dfceca827dbebfa04 (patch)
tree44ae6d43efda90a6b90824940a4f02712043d459 /applets/notification_area/system-tray
parent2c8de940026ce9a933dedc378a17d7c5e42bbb74 (diff)
downloadmate-panel-a5a079b5c83b292706ebae0dfceca827dbebfa04.tar.bz2
mate-panel-a5a079b5c83b292706ebae0dfceca827dbebfa04.tar.xz
na-tray-child: remove na_tray_child_size_allocate
Remov leftover from GTK2 that may play a role in cutting tray icons
Diffstat (limited to 'applets/notification_area/system-tray')
-rw-r--r--applets/notification_area/system-tray/na-tray-child.c46
1 files changed, 0 insertions, 46 deletions
diff --git a/applets/notification_area/system-tray/na-tray-child.c b/applets/notification_area/system-tray/na-tray-child.c
index 47a45e90..2eab4331 100644
--- a/applets/notification_area/system-tray/na-tray-child.c
+++ b/applets/notification_area/system-tray/na-tray-child.c
@@ -157,51 +157,6 @@ na_tray_child_get_preferred_height (GtkWidget *widget,
*natural_height = *natural_height / scale;
}
-static void
-na_tray_child_size_allocate (GtkWidget *widget,
- GtkAllocation *allocation)
-{
- NaTrayChild *child = NA_TRAY_CHILD (widget);
- GtkAllocation widget_allocation;
- gboolean moved, resized;
-
- gtk_widget_get_allocation (widget, &widget_allocation);
-
- moved = (allocation->x != widget_allocation.x ||
- allocation->y != widget_allocation.y);
- resized = (allocation->width != widget_allocation.width ||
- allocation->height != widget_allocation.height);
-
- /* When we are allocating the widget while mapped we need special handling
- * for both real and fake transparency.
- *
- * Real transparency: we need to invalidate and trigger a redraw of the old
- * and new areas. (GDK really should handle this for us, but doesn't as of
- * GTK+-2.14)
- *
- * Fake transparency: if the widget moved, we need to force the contents to
- * be redrawn with the new offset for the parent-relative background.
- */
- if ((moved || resized) && gtk_widget_get_mapped (widget))
- {
- if (na_tray_child_has_alpha (child))
- gdk_window_invalidate_rect (gdk_window_get_parent (gtk_widget_get_window (widget)),
- &widget_allocation, FALSE);
- }
-
- GTK_WIDGET_CLASS (na_tray_child_parent_class)->size_allocate (widget,
- allocation);
-
- if ((moved || resized) && gtk_widget_get_mapped (widget))
- {
- if (na_tray_child_has_alpha (NA_TRAY_CHILD (widget)))
- gdk_window_invalidate_rect (gdk_window_get_parent (gtk_widget_get_window (widget)),
- &widget_allocation, FALSE);
- else if (moved && child->parent_relative_bg)
- na_tray_child_force_redraw (child);
- }
-}
-
/* The plug window should completely occupy the area of the child, so we won't
* get an expose event. But in case we do (the plug unmaps itself, say), this
* expose handler draws with real or fake transparency.
@@ -429,7 +384,6 @@ na_tray_child_class_init (NaTrayChildClass *klass)
widget_class->realize = na_tray_child_realize;
widget_class->get_preferred_width = na_tray_child_get_preferred_width;
widget_class->get_preferred_height = na_tray_child_get_preferred_height;
- widget_class->size_allocate = na_tray_child_size_allocate;
widget_class->draw = na_tray_child_draw;
/* we don't really care actually */