summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2018-07-01 14:48:44 -0400
committerlukefromdc <[email protected]>2018-07-01 21:10:15 -0400
commit91f9afedff98445981cc4a70cf8050ac102c6b53 (patch)
tree4d2eb636c71338774aa4e1064abfb6a8d1b4a3af
parent002244141bd0205aff0aa3e7028529d1ba2ab22c (diff)
downloadmate-panel-91f9afedff98445981cc4a70cf8050ac102c6b53.tar.bz2
mate-panel-91f9afedff98445981cc4a70cf8050ac102c6b53.tar.xz
na-tray-child: remove na_tray_child_size_allocate
Remov leftover from GTK2 that may play a role in cutting tray icons
-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 d2bf4ba7..2f5b7cd0 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 */