mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-04 09:40:19 +00:00
popover: Remove some dead code
This commit is contained in:
parent
4a0476752c
commit
0bc65f0bde
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user