diff options
author | Jonas Kümmerlin <rgcjonas@gmail.com> | 2015-08-08 18:15:26 +0200 |
---|---|---|
committer | Andre Miranda <andreldm@xfce.org> | 2017-08-14 21:06:47 -0300 |
commit | 81e645d8faaab8c91f6b6b907f1667052a760a76 (patch) | |
tree | 01a800fbe631f04ada8acb12c4da5a1978fb40b1 /thunar/thunar-abstract-icon-view.c | |
parent | 5d25e291cd99db0a0870c4b31144dbb85b94517f (diff) | |
download | thunar-81e645d8faaab8c91f6b6b907f1667052a760a76.tar.gz |
Make Thunar core compile and not crash with Gtk3
Optional plugins are not ported yet. We use a shitload of
deprecated Gtk APIs now. Not all features work.
It doesn't look great yet. There are bugs.
But, well, it's a first step.
Diffstat (limited to 'thunar/thunar-abstract-icon-view.c')
-rw-r--r-- | thunar/thunar-abstract-icon-view.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/thunar/thunar-abstract-icon-view.c b/thunar/thunar-abstract-icon-view.c index 828818b4..15c83d69 100644 --- a/thunar/thunar-abstract-icon-view.c +++ b/thunar/thunar-abstract-icon-view.c @@ -224,7 +224,8 @@ thunar_abstract_icon_view_init (ThunarAbstractIconView *abstract_icon_view) "file", THUNAR_COLUMN_FILE); /* add the name renderer */ - g_object_set (G_OBJECT (THUNAR_STANDARD_VIEW (abstract_icon_view)->name_renderer), "follow-state", TRUE, NULL); + /*FIXME text prelit*/ + /*g_object_set (G_OBJECT (THUNAR_STANDARD_VIEW (abstract_icon_view)->name_renderer), "follow-state", TRUE, NULL);*/ gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (view), THUNAR_STANDARD_VIEW (abstract_icon_view)->name_renderer, TRUE); gtk_cell_layout_add_attribute (GTK_CELL_LAYOUT (view), THUNAR_STANDARD_VIEW (abstract_icon_view)->name_renderer, "text", THUNAR_COLUMN_NAME); @@ -695,7 +696,7 @@ thunar_abstract_icon_view_key_press_event (ExoIconView *view, ThunarAbstractIconView *abstract_icon_view) { /* popup context menu if "Menu" or "<Shift>F10" is pressed */ - if (event->keyval == GDK_Menu || ((event->state & GDK_SHIFT_MASK) != 0 && event->keyval == GDK_F10)) + if (event->keyval == GDK_KEY_Menu || ((event->state & GDK_SHIFT_MASK) != 0 && event->keyval == GDK_KEY_F10)) { thunar_standard_view_context_menu (THUNAR_STANDARD_VIEW (abstract_icon_view), 0, event->time); return TRUE; |