diff options
author | Wolfgang Ulbrich <[email protected]> | 2016-01-17 21:45:22 +0100 |
---|---|---|
committer | Wolfgang Ulbrich <[email protected]> | 2016-01-17 21:45:22 +0100 |
commit | 57c2e8090698e8d05beec0c53e3a116fd8b88862 (patch) | |
tree | 51b24fec5c03202d7a16987c248d42f7f4c956d9 /src/file-manager/fm-properties-window.c | |
parent | 312f33c5b54c735d15e78c9b96672b8b555f4834 (diff) | |
download | caja-57c2e8090698e8d05beec0c53e3a116fd8b88862.tar.bz2 caja-57c2e8090698e8d05beec0c53e3a116fd8b88862.tar.xz |
GTK3: more deprecated GtkVBox/GtkHBox fixes
Diffstat (limited to 'src/file-manager/fm-properties-window.c')
-rw-r--r-- | src/file-manager/fm-properties-window.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/file-manager/fm-properties-window.c b/src/file-manager/fm-properties-window.c index 4f5d3bf0..f977555b 100644 --- a/src/file-manager/fm-properties-window.c +++ b/src/file-manager/fm-properties-window.c @@ -380,7 +380,11 @@ get_target_file (FMPropertiesWindow *window) } static void +#if GTK_CHECK_VERSION (3, 0, 0) +add_prompt (GtkWidget *vbox, const char *prompt_text, gboolean pack_at_start) +#else add_prompt (GtkVBox *vbox, const char *prompt_text, gboolean pack_at_start) +#endif { GtkWidget *prompt; @@ -396,7 +400,11 @@ add_prompt (GtkVBox *vbox, const char *prompt_text, gboolean pack_at_start) } static void +#if GTK_CHECK_VERSION (3, 0, 0) +add_prompt_and_separator (GtkWidget *vbox, const char *prompt_text) +#else add_prompt_and_separator (GtkVBox *vbox, const char *prompt_text) +#endif { GtkWidget *separator_line; @@ -5747,7 +5755,7 @@ create_permissions_page (FMPropertiesWindow *window) if (!all_can_set_permissions (file_list)) { add_prompt_and_separator ( - GTK_VBOX (vbox), + vbox, _("You are not the owner, so you cannot change these permissions.")); } @@ -5865,7 +5873,11 @@ create_permissions_page (FMPropertiesWindow *window) prompt_text = g_strdup (_("The permissions of the selected file could not be determined.")); } +#if GTK_CHECK_VERSION (3, 0, 0) + add_prompt (vbox, prompt_text, TRUE); +#else add_prompt (GTK_VBOX (vbox), prompt_text, TRUE); +#endif g_free (prompt_text); } } |