summaryrefslogtreecommitdiff
path: root/src/gtk-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gtk-utils.c')
-rw-r--r--src/gtk-utils.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/gtk-utils.c b/src/gtk-utils.c
index 56ba99b..40d5336 100644
--- a/src/gtk-utils.c
+++ b/src/gtk-utils.c
@@ -742,7 +742,6 @@ get_mime_type_pixbuf (const char *mime_type,
return pixbuf;
}
-
int
get_folder_pixbuf_size_for_list (GtkWidget *widget)
{
@@ -754,7 +753,6 @@ get_folder_pixbuf_size_for_list (GtkWidget *widget)
return MAX (icon_width, icon_height);
}
-
gboolean
show_uri (GdkScreen *screen,
const char *uri,
@@ -828,3 +826,14 @@ _gtk_builder_get_widget (GtkBuilder *builder,
{
return (GtkWidget *) gtk_builder_get_object (builder, name);
}
+
+int
+_gtk_widget_lookup_for_size (GtkWidget *widget,
+ GtkIconSize icon_size)
+{
+ int w, h;
+ gtk_icon_size_lookup_for_settings (gtk_widget_get_settings (widget),
+ icon_size,
+ &w, &h);
+ return MAX (w, h);
+}