[gtk/matthiasc/for-master] popover: Remove some dead code
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master] popover: Remove some dead code
- Date: Sun, 29 Dec 2019 02:29:10 +0000 (UTC)
commit 25856ba37d3497ebe56beccdf3f61654e2562fd7
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Dec 28 21:04:42 2019 -0500
popover: Remove some dead code
gtk/gtkpopover.c | 5 -----
1 file changed, 5 deletions(-)
---
diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c
index 4c181f3c63..4761e8bb1b 100644
--- a/gtk/gtkpopover.c
+++ b/gtk/gtkpopover.c
@@ -605,12 +605,9 @@ gtk_popover_realize (GtkWidget *widget)
{
GtkPopover *popover = GTK_POPOVER (widget);
GtkPopoverPrivate *priv = gtk_popover_get_instance_private (popover);
- GdkRectangle parent_rect;
GdkDisplay *display;
GdkSurface *parent;
- gtk_widget_get_surface_allocation (priv->relative_to, &parent_rect);
-
display = gtk_widget_get_display (priv->relative_to);
parent = gtk_native_get_surface (gtk_widget_get_native (priv->relative_to));
@@ -706,10 +703,8 @@ gtk_popover_map (GtkWidget *widget)
GtkPopover *popover = GTK_POPOVER (widget);
GtkPopoverPrivate *priv = gtk_popover_get_instance_private (popover);
GtkWidget *child;
- GdkRectangle parent_rect;
gdk_surface_show (priv->surface);
- gtk_widget_get_surface_allocation (priv->relative_to, &parent_rect);
move_to_rect (popover);
priv->surface_transform_changed_cb =
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]