[latexila] Symbols: remove hack for resizing the IconView
- From: SÃbastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] Symbols: remove hack for resizing the IconView
- Date: Fri, 25 May 2012 15:48:39 +0000 (UTC)
commit 2467224d03364c1a22fe897d3b555f315ec53b19
Author: SÃbastien Wilmet <swilmet src gnome org>
Date: Fri May 25 17:36:20 2012 +0200
Symbols: remove hack for resizing the IconView
The bug is fixed in GTK+ 3.4.3 and above.
CMakeLists.txt | 2 +-
INSTALL | 2 +-
src/main_window.vala | 5 -----
src/symbols_view.vala | 21 ---------------------
4 files changed, 2 insertions(+), 28 deletions(-)
---
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9ed5fba..1f6e654 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -55,7 +55,7 @@ endif ()
# Dependencies
find_package (PkgConfig)
-pkg_check_modules (GTK REQUIRED "gtk+-3.0 >= 3.4")
+pkg_check_modules (GTK REQUIRED "gtk+-3.0 >= 3.4.3")
pkg_check_modules (GTKSOURCEVIEW REQUIRED "gtksourceview-3.0 >= 3.4.1")
pkg_check_modules (GEE REQUIRED "gee-1.0")
pkg_check_modules (GIO REQUIRED "gio-2.0 >= 2.32")
diff --git a/INSTALL b/INSTALL
index bdd822a..e343bfb 100644
--- a/INSTALL
+++ b/INSTALL
@@ -2,7 +2,7 @@ Requirements
============
GLib >= 2.32
-GTK+ >= 3.4
+GTK+ >= 3.4.3
GtkSourceView >= 3.4.1
GtkSpell >= 3.0 (not yet released)
libgee
diff --git a/src/main_window.vala b/src/main_window.vala
index 1da3332..6e1e940 100644
--- a/src/main_window.vala
+++ b/src/main_window.vala
@@ -478,11 +478,6 @@ public class MainWindow : Window
main_vgrid.add (main_hpaned);
main_hpaned.show ();
- main_hpaned.notify["position"].connect (() =>
- {
- this._symbols.resize_iconview ();
- });
-
// vgrid source view: documents panel, goto line, search and replace
Grid vgrid_source_view = new Grid ();
vgrid_source_view.orientation = Orientation.VERTICAL;
diff --git a/src/symbols_view.vala b/src/symbols_view.vala
index c0a36c9..8bfc2de 100644
--- a/src/symbols_view.vala
+++ b/src/symbols_view.vala
@@ -30,7 +30,6 @@ public class SymbolsView : Grid
private ComboBox _combo_box;
private IconView _symbol_view;
private Button _clear_button;
- private uint _timeout_id = 0;
public SymbolsView (MainWindow main_window)
{
@@ -53,30 +52,10 @@ public class SymbolsView : Grid
add (_clear_button);
show_all ();
- show.connect (() => resize_iconview ());
_combo_box.set_active (0);
}
- // HACK the IconView is not resized with GTK+ 3.4, see:
- // https://bugzilla.gnome.org/show_bug.cgi?id=673326
- // TODO when the IconView is fixed, remove this hack.
- public void resize_iconview ()
- {
- if (_timeout_id > 0)
- return;
-
- // Resize every 100ms.
- _timeout_id = Timeout.add (100, () =>
- {
- TreeModel model = _symbol_view.get_model ();
- _symbol_view.set_model (null);
- _symbol_view.set_model (model);
- _timeout_id = 0;
- return false;
- });
- }
-
private void create_combo_box ()
{
TreeModel categories_model = Symbols.get_default ().get_categories_model ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]