diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2014-08-01 17:38:42 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2014-08-03 18:37:53 +0200 |
commit | 5b8267028d89e665eb1ab03165b1309903ea3f9a (patch) | |
tree | cacfe91d8938373149bdc0e6695eacbbc817faff /gtk/gtkpopoverprivate.h | |
parent | bd07845c3127bac662ed019677be8f6fbe50a663 (diff) | |
download | gtk+-5b8267028d89e665eb1ab03165b1309903ea3f9a.tar.gz |
window: Update popover positions on ::size-allocate
Popovers may get relocations optimized away if only x/y changed
in the GtkAllocation. So make sure the toplevel updates popover
positions on all situations.
https://bugzilla.gnome.org/show_bug.cgi?id=729140
Diffstat (limited to 'gtk/gtkpopoverprivate.h')
-rw-r--r-- | gtk/gtkpopoverprivate.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/gtk/gtkpopoverprivate.h b/gtk/gtkpopoverprivate.h new file mode 100644 index 0000000000..ab61eb993e --- /dev/null +++ b/gtk/gtkpopoverprivate.h @@ -0,0 +1,29 @@ +/* GTK - The GIMP Toolkit + * Copyright © 2014 Carlos Garnacho <carlosg@gnome.org> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef __GTK_POPOVER_PRIVATE_H__ +#define __GTK_POPOVER_PRIVATE_H__ + +#include "gtkpopover.h" + +G_BEGIN_DECLS + +void gtk_popover_update_position (GtkPopover *popover); + +G_END_DECLS + +#endif /* __GTK_POPOVER_PRIVATE_H__ */ |