forked from AuroraMiddleware/gtk
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master See merge request GNOME/gtk!2265
This commit is contained in:
commit
b5e20a3e37
2
NEWS
2
NEWS
@ -1,7 +1,7 @@
|
||||
Overview of Changes in GTK 3.99.0
|
||||
=================================
|
||||
|
||||
* Add GtkEditableLabel
|
||||
* Add GtkEditableLabel, a label that can be edited
|
||||
|
||||
* Add GtkBookmarkList, a list model for bookmarks
|
||||
|
||||
|
@ -268,7 +268,6 @@ perform_titlebar_action (GtkWindowHandle *self,
|
||||
GtkSettings *settings;
|
||||
gchar *action = NULL;
|
||||
gboolean retval = TRUE;
|
||||
GtkActionMuxer *context;
|
||||
|
||||
settings = gtk_widget_get_settings (GTK_WIDGET (self));
|
||||
switch (button)
|
||||
@ -287,21 +286,19 @@ perform_titlebar_action (GtkWindowHandle *self,
|
||||
break;
|
||||
}
|
||||
|
||||
context = _gtk_widget_get_action_muxer (GTK_WIDGET (self), TRUE);
|
||||
|
||||
if (action == NULL)
|
||||
retval = FALSE;
|
||||
else if (g_str_equal (action, "none"))
|
||||
retval = FALSE;
|
||||
/* treat all maximization variants the same */
|
||||
else if (g_str_has_prefix (action, "toggle-maximize"))
|
||||
g_action_group_activate_action (G_ACTION_GROUP (context),
|
||||
gtk_widget_activate_action (GTK_WIDGET (self),
|
||||
"window.toggle-maximized",
|
||||
NULL);
|
||||
else if (g_str_equal (action, "lower"))
|
||||
lower_window (self);
|
||||
else if (g_str_equal (action, "minimize"))
|
||||
g_action_group_activate_action (G_ACTION_GROUP (context),
|
||||
gtk_widget_activate_action (GTK_WIDGET (self),
|
||||
"window.minimize",
|
||||
NULL);
|
||||
else if (g_str_equal (action, "menu"))
|
||||
|
Loading…
Reference in New Issue
Block a user