[pan2] amend for bug in commit https://bugzilla.gnome.org/show_bug.cgi?id=622669



commit c912f7a0bd537e41154fb9a25a9b2a252cc11e27
Author: Heinrich MÃller <henmull src gnome org>
Date:   Sat Dec 3 22:26:32 2011 +0100

    amend for bug in commit https://bugzilla.gnome.org/show_bug.cgi?id=622669

 pan/gui/header-pane.cc |    6 +++---
 pan/gui/pan.cc         |    6 ++++++
 2 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/pan/gui/header-pane.cc b/pan/gui/header-pane.cc
index eb67650..e014462 100644
--- a/pan/gui/header-pane.cc
+++ b/pan/gui/header-pane.cc
@@ -1930,11 +1930,11 @@ namespace
       GtkTreeSelection * sel (gtk_tree_view_get_selection (_view));
       gtk_tree_selection_unselect_all (sel);
       GtkTreePath * path = gtk_tree_model_get_path (model, iter);
-      if (_expand)
-      {
+//      if (_expand)
+//      {
         gtk_tree_view_expand_row (_view, path, true);
         gtk_tree_view_expand_to_path (_view, path);
-      }
+//      }
       gtk_tree_view_set_cursor (_view, path, NULL, FALSE);
       gtk_tree_view_scroll_to_cell (_view, path, NULL, true, 0.5f, 0.0f);
       gtk_tree_path_free (path);
diff --git a/pan/gui/pan.cc b/pan/gui/pan.cc
index 413e2e9..a681fd2 100644
--- a/pan/gui/pan.cc
+++ b/pan/gui/pan.cc
@@ -54,6 +54,8 @@ extern "C" {
 #include "server-ui.h"
 #include "pad.h"
 
+//#define DEBUG_LOCALE 1
+
 using namespace pan;
 
 namespace
@@ -486,6 +488,10 @@ main (int argc, char *argv[])
     }
   }
 
+#ifdef DEBUG_LOCALE
+  setlocale(LC_ALL,"C");
+#endif
+
   if (gui)
     gtk_init (&argc, &argv);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]