Mailinglist Archive: yast-commit (953 mails)

< Previous Next >
[yast-commit] r49598 - in /trunk/gtk: ChangeLog src/YGTable.cc
  • From: rpmcruz@xxxxxxxxxxxxxxxx
  • Date: Sat, 02 Aug 2008 16:58:16 -0000
  • Message-id: <20080802165816.545DC2737C@xxxxxxxxxxxxxxxx>
Author: rpmcruz
Date: Sat Aug 2 18:58:15 2008
New Revision: 49598

URL: http://svn.opensuse.org/viewcvs/yast?rev=49598&view=rev
Log:
* src/YGTable.cc: fixed random crash on the "printer" tool. Looks like
it was Introduced when added the multiSelection flag.
GtkTreeSelection::changed signal works funny; use
GtkTreeView::cursor_changed.

Modified:
trunk/gtk/ChangeLog
trunk/gtk/src/YGTable.cc

Modified: trunk/gtk/ChangeLog
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/gtk/ChangeLog?rev=49598&r1=49597&r2=49598&view=diff
==============================================================================
--- trunk/gtk/ChangeLog (original)
+++ trunk/gtk/ChangeLog Sat Aug 2 18:58:15 2008
@@ -5,6 +5,10 @@

* src/ygtkrichtext.c: added support for the "hr" tag. Image at
src/hr.xpm

+ * src/YGTable.cc: fixed random crash on the "printer" tool. Looks like
+ it was Introduced when added the multiSelection flag.
+ GtkTreeSelection::changed signal works funny; use
GtkTreeView::cursor_changed.
+
2008-07-31 Ricardo Cruz <rpmcruz@xxxxxxxxxxxxxxxxxxx>

* src/YGPackageSelector.cc: online update was broken.

Modified: trunk/gtk/src/YGTable.cc
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/YGTable.cc?rev=49598&r1=49597&r2=49598&view=diff
==============================================================================
--- trunk/gtk/src/YGTable.cc (original)
+++ trunk/gtk/src/YGTable.cc Sat Aug 2 18:58:15 2008
@@ -106,7 +106,7 @@
GtkTreePath *path = gtk_tree_model_get_path (getModel(), iter);
gtk_tree_view_expand_to_path (getView(), path);

- gtk_tree_selection_select_path (getSelection(), path);
+ gtk_tree_view_set_cursor (getView(), path, NULL, FALSE);
gtk_tree_view_scroll_to_cell (getView(), path, NULL, TRUE, 0.5,
0.5);
gtk_tree_path_free (path);
unblockEvents();
@@ -156,7 +156,7 @@
emitEvent (YEvent::ValueChanged);
}

- static void selected_cb (GtkTreeView *tree_view, YGTableView* pThis)
+ static void selected_cb (GtkTreeView *view, YGTableView* pThis)
{
IMPL
if (pThis->blockSelected)
@@ -228,7 +228,7 @@

g_signal_connect (G_OBJECT (getWidget()), "row-activated",
G_CALLBACK (activated_cb), (YGTableView*)
this);
- g_signal_connect_after (G_OBJECT (getSelection()), "changed",
+ g_signal_connect (G_OBJECT (getWidget()), "cursor-changed",
G_CALLBACK (selected_cb), (YGTableView*)
this);
if (!keepSorting())
setSortable (true);

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages