summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-icon-container.c
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2016-01-23 00:04:15 +0100
committermonsta <[email protected]>2016-01-25 16:53:59 +0300
commit1241ff234a8ec46542e97e48a6298b78c9a0d2b5 (patch)
tree1a23419da4aea0392649d03888b3cc2621011851 /libcaja-private/caja-icon-container.c
parent130906c9182c71a6049eca472f8d3b91804124cf (diff)
downloadcaja-1241ff234a8ec46542e97e48a6298b78c9a0d2b5.tar.bz2
caja-1241ff234a8ec46542e97e48a6298b78c9a0d2b5.tar.xz
GTK3: fix deprecated GtkMisc
Diffstat (limited to 'libcaja-private/caja-icon-container.c')
-rw-r--r--libcaja-private/caja-icon-container.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libcaja-private/caja-icon-container.c b/libcaja-private/caja-icon-container.c
index f93e633f..1b77db00 100644
--- a/libcaja-private/caja-icon-container.c
+++ b/libcaja-private/caja-icon-container.c
@@ -9252,7 +9252,14 @@ caja_icon_container_start_renaming_selected_item (CajaIconContainer *container,
eel_editable_label_set_justify (EEL_EDITABLE_LABEL (details->rename_widget), GTK_JUSTIFY_CENTER);
}
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gtk_widget_set_margin_start (details->rename_widget, 1);
+ gtk_widget_set_margin_end (details->rename_widget, 1);
+ gtk_widget_set_margin_top (details->rename_widget, 1);
+ gtk_widget_set_margin_bottom (details->rename_widget, 1);
+#else
gtk_misc_set_padding (GTK_MISC (details->rename_widget), 1, 1);
+#endif
gtk_layout_put (GTK_LAYOUT (container),
details->rename_widget, 0, 0);
}