[gconf-editor] Don't overwrite window->list_model in popup-menu callback
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gconf-editor] Don't overwrite window->list_model in popup-menu callback
- Date: Mon, 24 Aug 2009 09:24:06 +0000 (UTC)
commit 8fbaf480bc2a47dfb1d2698d82cb2c6547b3e811
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Aug 24 11:20:09 2009 +0200
Don't overwrite window->list_model in popup-menu callback
This causes a crash, as the list view has another sort model on it, and
later we will use it instead of the real model.
Patch by Sergey Nizovtsev, fix bug #531718.
src/gconf-editor-window.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gconf-editor-window.c b/src/gconf-editor-window.c
index 2dfb2bc..8936e27 100644
--- a/src/gconf-editor-window.c
+++ b/src/gconf-editor-window.c
@@ -1022,7 +1022,7 @@ gconf_editor_window_list_view_popup_menu (GtkWidget *widget, GConfEditorWindow *
GtkTreeSelection *selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (window->list_view));
/* Select our row */
- if (gtk_tree_selection_get_selected (selection, &window->list_model, &iter)) {
+ if (gtk_tree_selection_get_selected (selection, NULL, &iter)) {
gtk_widget_set_sensitive (gtk_ui_manager_get_widget (window->ui_manager, "/GConfKeyPopupMenu/EditKey"),
TRUE);
gtk_widget_set_sensitive (gtk_ui_manager_get_widget (window->ui_manager, "/GConfKeyPopupMenu/UnsetKey"),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]