diff options
author | infirit <[email protected]> | 2014-11-21 13:44:47 +0100 |
---|---|---|
committer | infirit <[email protected]> | 2014-11-21 13:44:47 +0100 |
commit | b8c7de3fbbefe00fac750bf67dfb61797ba41938 (patch) | |
tree | 7af1468dc1f4dfe8dbdf18e08d7bb94b9db48270 /src/gtk-utils.c | |
parent | 907d797ad2f9d4bfacacf01ce1153309825d49e6 (diff) | |
download | engrampa-b8c7de3fbbefe00fac750bf67dfb61797ba41938.tar.bz2 engrampa-b8c7de3fbbefe00fac750bf67dfb61797ba41938.tar.xz |
added an icon to the progress dialog
Based on FR commit: f6fa4bdb5ccc059a6b13938e6b017bcefed2c8ab
From: Paolo Bacchilega <[email protected]>
Diffstat (limited to 'src/gtk-utils.c')
-rw-r--r-- | src/gtk-utils.c | 13 |
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); +} |