[nautilus/wip/gaction: 2/2] debug
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/gaction: 2/2] debug
- Date: Fri, 5 Dec 2014 13:47:09 +0000 (UTC)
commit 154ecda31bad31cd82117f7cbef7e98dda4d4344
Author: Carlos Soriano <carlos sorian89 gmail com>
Date: Fri Dec 5 14:46:22 2014 +0100
debug
libnautilus-private/nautilus-directory-async.c | 4 ++++
src/nautilus-window-menus.c | 4 ++--
2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/libnautilus-private/nautilus-directory-async.c b/libnautilus-private/nautilus-directory-async.c
index afc41b2..d29b0b7 100644
--- a/libnautilus-private/nautilus-directory-async.c
+++ b/libnautilus-private/nautilus-directory-async.c
@@ -3558,6 +3558,8 @@ thumbnail_loader_size_prepared (GdkPixbufLoader *loader,
double aspect_ratio;
aspect_ratio = ((double) width) / height;
+ g_print ("bef width heitgh %i %i\n", width, height);
+ g_print ("cached %i\n", cached_thumbnail_size);
/* cf. nautilus_file_get_icon() */
max_thumbnail_size = NAUTILUS_ICON_SIZE_LARGEST * cached_thumbnail_size / NAUTILUS_ICON_SIZE_STANDARD;
@@ -3570,6 +3572,8 @@ thumbnail_loader_size_prepared (GdkPixbufLoader *loader,
width = height * aspect_ratio;
}
+ g_print ("width heitgh %i %i\n", width, height);
+
gdk_pixbuf_loader_set_size (loader, width, height);
}
}
diff --git a/src/nautilus-window-menus.c b/src/nautilus-window-menus.c
index 3f15517..891c72c 100644
--- a/src/nautilus-window-menus.c
+++ b/src/nautilus-window-menus.c
@@ -365,7 +365,7 @@ action_view_radio_changed (GtkRadioAction *action,
{
const gchar *name;
NautilusWindowSlot *slot;
-
+/*
name = gtk_action_get_name (GTK_ACTION (current));
slot = nautilus_window_get_active_slot (window);
@@ -373,7 +373,7 @@ action_view_radio_changed (GtkRadioAction *action,
nautilus_window_slot_set_content_view (slot, NAUTILUS_LIST_VIEW_ID);
} else if (g_strcmp0 (name, NAUTILUS_ACTION_VIEW_GRID) == 0) {
nautilus_window_slot_set_content_view (slot, NAUTILUS_CANVAS_VIEW_ID);
- }
+ }*/
}
static const GtkActionEntry main_entries[] = {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]