diff options
author | Rui Matos <tiagomatos@gmail.com> | 2012-01-05 17:21:03 +0000 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-01-09 18:38:00 +0100 |
commit | e9adaabc5e28cd032b80457953ae1f12f5776c73 (patch) | |
tree | ce50a25411e4f4db32016b89c16249f98de4b224 /gtk/gtkwindow.c | |
parent | 7a00a9550871cbe784e653c36e3fbf830fefdea1 (diff) | |
download | gtk+-e9adaabc5e28cd032b80457953ae1f12f5776c73.tar.gz |
Rename 'window-unfocused' to 'backdrop'
'window-unfocused' is too long and mentions "focus" which is historically
loaded with the meaning "input focus".
'backdrop' isn't generally used in GUI speak and still conveys the state the
widgets in an unfocused or background toplevel window are in.
Diffstat (limited to 'gtk/gtkwindow.c')
-rw-r--r-- | gtk/gtkwindow.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 7cf25f9afe..a9221f26ed 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -478,7 +478,7 @@ static void gtk_window_get_preferred_height (GtkWidget *widget, gint *minimum_size, gint *natural_size); -static void ensure_state_flag_window_unfocused (GtkWidget *widget); +static void ensure_state_flag_backdrop (GtkWidget *widget); G_DEFINE_TYPE_WITH_CODE (GtkWindow, gtk_window, GTK_TYPE_BIN, G_IMPLEMENT_INTERFACE (GTK_TYPE_BUILDABLE, @@ -4893,7 +4893,7 @@ gtk_window_map (GtkWidget *widget) else gtk_window_set_focus_visible (window, visible_focus == GTK_POLICY_ALWAYS); - ensure_state_flag_window_unfocused (widget); + ensure_state_flag_backdrop (widget); } static gboolean @@ -5543,7 +5543,7 @@ gtk_window_state_event (GtkWidget *widget, update_grip_visibility (GTK_WINDOW (widget)); if (event->changed_mask & GDK_WINDOW_STATE_FOCUSED) - ensure_state_flag_window_unfocused (widget); + ensure_state_flag_backdrop (widget); return FALSE; } @@ -9697,7 +9697,7 @@ gtk_window_set_has_user_ref_count (GtkWindow *window, } static void -ensure_state_flag_window_unfocused (GtkWidget *widget) +ensure_state_flag_backdrop (GtkWidget *widget) { GdkWindow *window; gboolean window_focused = TRUE; @@ -9707,9 +9707,9 @@ ensure_state_flag_window_unfocused (GtkWidget *widget) window_focused = gdk_window_get_state (window) & GDK_WINDOW_STATE_FOCUSED; if (!window_focused) - gtk_widget_set_state_flags (widget, GTK_STATE_FLAG_WINDOW_UNFOCUSED, FALSE); + gtk_widget_set_state_flags (widget, GTK_STATE_FLAG_BACKDROP, FALSE); else - gtk_widget_unset_state_flags (widget, GTK_STATE_FLAG_WINDOW_UNFOCUSED); + gtk_widget_unset_state_flags (widget, GTK_STATE_FLAG_BACKDROP); gtk_widget_queue_draw (widget); } |