diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-02-17 21:44:53 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-02-17 21:44:53 -0500 |
commit | af1981eda2d06c9339bbd5039ea6994d3f84b1ea (patch) | |
tree | 7d170f9f69cc0087ecf685f4c70a8b058232b0c7 | |
parent | 38da88908d6e4974fc7dfd401f856533b8ba8615 (diff) | |
download | gtk+-af1981eda2d06c9339bbd5039ea6994d3f84b1ea.tar.gz |
popovercontent: Few small fixes
Forgot to include config.h. Oops, and we make things
a bit shorter still.
-rw-r--r-- | gtk/gtkpopovercontent.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gtk/gtkpopovercontent.c b/gtk/gtkpopovercontent.c index 92a299d571..d4969de987 100644 --- a/gtk/gtkpopovercontent.c +++ b/gtk/gtkpopovercontent.c @@ -18,10 +18,13 @@ * License along with this library. If not, see <http://www.gnu.org/licenses/>. */ +#include "config.h" + #include "gtkpopovercontentprivate.h" #include "gtkstylecontextprivate.h" #include "gtkwidgetprivate.h" +#include "gtkintl.h" /* A private class used as the child of GtkPopover. The only thing * special here is that we need to queue a resize on the popover when @@ -71,6 +74,8 @@ gtk_popover_content_class_init (GtkPopoverContentClass *klass) widget_class->focus = gtk_widget_focus_child; widget_class->grab_focus = gtk_widget_grab_focus_child; widget_class->css_changed = gtk_popover_content_css_changed; + + gtk_widget_class_set_css_name (widget_class, I_("contents")); } static void @@ -81,8 +86,5 @@ gtk_popover_content_init (GtkPopoverContent *self) GtkWidget * gtk_popover_content_new (void) { - return g_object_new (GTK_TYPE_POPOVER_CONTENT, - "css-name", "contents", - "accessible-role", GTK_ACCESSIBLE_ROLE_WIDGET, - NULL); + return g_object_new (GTK_TYPE_POPOVER_CONTENT, NULL); } |