diff options
author | rbuj <[email protected]> | 2020-10-16 22:51:15 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-11-24 14:53:30 +0100 |
commit | e6805e149177a343f3152bcd2cea9165904b686c (patch) | |
tree | 9597206276748da71ed021f45918110b9db191bb /capplets/appearance/appearance-themes.c | |
parent | b45a719071cdb7bf009f7173b04a553b546491a5 (diff) | |
download | mate-control-center-e6805e149177a343f3152bcd2cea9165904b686c.tar.bz2 mate-control-center-e6805e149177a343f3152bcd2cea9165904b686c.tar.xz |
appearance: Introduce GET_WINDOW macro
Diffstat (limited to 'capplets/appearance/appearance-themes.c')
-rw-r--r-- | capplets/appearance/appearance-themes.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/capplets/appearance/appearance-themes.c b/capplets/appearance/appearance-themes.c index a1cfdd62..de164344 100644 --- a/capplets/appearance/appearance-themes.c +++ b/capplets/appearance/appearance-themes.c @@ -784,11 +784,10 @@ theme_selection_changed_cb (GtkWidget *icon_view, AppearanceData *data) static void theme_custom_cb (GtkWidget *button, AppearanceData *data) { - GtkWidget *w, *parent; + GtkWidget *w; w = appearance_capplet_get_widget (data, "theme_details"); - parent = appearance_capplet_get_widget (data, "appearance_window"); - gtk_window_set_transient_for (GTK_WINDOW (w), GTK_WINDOW (parent)); + gtk_window_set_transient_for (GTK_WINDOW (w), GET_WINDOW ("appearance_window")); gtk_widget_show_all (w); } @@ -801,8 +800,7 @@ theme_save_cb (GtkWidget *button, AppearanceData *data) static void theme_install_cb (GtkWidget *button, AppearanceData *data) { - mate_theme_installer_run ( - GTK_WINDOW (appearance_capplet_get_widget (data, "appearance_window"))); + mate_theme_installer_run (GET_WINDOW ("appearance_window")); } static void @@ -963,8 +961,7 @@ theme_drag_data_received_cb (GtkWidget *widget, if (uris != NULL && uris[0] != NULL) { GFile *f = g_file_new_for_uri (uris[0]); - mate_theme_install (f, - GTK_WINDOW (appearance_capplet_get_widget (data, "appearance_window"))); + mate_theme_install (f, GET_WINDOW ("appearance_window")); g_object_unref (f); } |