forked from AuroraMiddleware/gtk
f637006b3e
Remove the special case in gtkwidget.c where we didn't draw any css background/border for popovers. Instead, rely on themes to not style the popover node and add a contents gizmo that gets the actual css styling. We then requeste enough space for the popover to draw both the contents and the arrow on the side.
32 lines
1.0 KiB
C
32 lines
1.0 KiB
C
/* 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);
|
|
|
|
GtkWidget *gtk_popover_get_contents_widget (GtkPopover *popover);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __GTK_POPOVER_PRIVATE_H__ */
|