Commit 00bec905 authored by Christian Hergert's avatar Christian Hergert
Browse files

workbench: hide fullscreen button on pantheon

parent de115231
......@@ -51,6 +51,22 @@ ide_workbench_header_bar_new (void)
return g_object_new (IDE_TYPE_WORKBENCH_HEADER_BAR, NULL);
static void
apply_quirks (IdeWorkbenchHeaderBar *self)
IdeWorkbenchHeaderBarPrivate *priv = ide_workbench_header_bar_get_instance_private (self);
const gchar *session;
g_assert (IDE_IS_WORKBENCH_HEADER_BAR (self));
/* Hide fullscreen on Pantheon, which adds it's own fullscreen button
* without any app negotiation.
session = g_getenv ("DESKTOP_SESSION");
if (dzl_str_equal0 (session, "pantheon"))
gtk_widget_hide (GTK_WIDGET (priv->fullscreen_button));
static void
ide_workbench_header_bar_menu_items_changed (IdeWorkbenchHeaderBar *self,
guint position,
......@@ -144,6 +160,8 @@ ide_workbench_header_bar_init (IdeWorkbenchHeaderBar *self)
ide_workbench_header_bar_menu_items_changed (self, 0, 0, 0, model);
apply_quirks (self);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment