Bug#757010: [libgtk-3-dev] libgtk-3-dev GtkTreeView signal callback button-press-event bug

Cactus medved_cool at mail.ru
Mon Aug 4 11:39:04 UTC 2014


Package: libgtk-3-dev
Version: 3.4.2-7
Severity: normal
Tags: patch

--- Please enter the report below this line. ---
I create object GtkTreeView with the type of storage GtkTreeStore.
Then connect to GtkTreeView signal handler button-press-event.
In this event handler is called, but there is no selection line.
If I attach a handler to the signal button-release-event, then the 
handler is called, is an selection of the line, but fails to deploy a 
substring by pressing [+]
No errors in stderr.
The letter attached pieces of source code.


--- System information. ---
Architecture: amd64
Kernel: Linux 3.2.0-4-amd64

Debian Release: 7.6
500 testing notesalexp.org
500 stable-updates mirror.yandex.ru
500 stable security.debian.org
500 stable mirror.yandex.ru
500 stable dl.google.com

--- Package information. ---
Depends (Version) | Installed
====================================-+-============
libgtk-3-0 (= 3.4.2-7) | 3.4.2-7
gir1.2-gtk-3.0 (= 3.4.2-7) | 3.4.2-7
libgtk-3-common | 3.4.2-7
libglib2.0-dev (>= 2.32.0) | 2.33.12+really2.32.4-5
libgdk-pixbuf2.0-dev (>= 2.26.0) | 2.26.1-1
libpango1.0-dev (>= 1.30.0) | 1.30.0-1
libatk1.0-dev (>= 2.2.0) | 2.4.0-2
libcairo2-dev (>= 1.10.0) | 1.12.2-3
libx11-dev | 2:1.5.0-1+deb7u1
libxext-dev | 2:1.3.1-2+deb7u1
libxinerama-dev | 2:1.1.2-1+deb7u1
libxi-dev | 2:1.6.1-1+deb7u1
libxrandr-dev | 2:1.3.2-2+deb7u1
libxcursor-dev | 1:1.1.13-1+deb7u1
libxfixes-dev | 1:5.0-4+deb7u1
libxcomposite-dev | 1:0.4.3-2
libxdamage-dev | 1:1.1.3-2
pkg-config (>= 0.26-1) | 0.26-1


Package's Recommends field is empty.

Suggests (Version) | Installed
===========================-+-===========
libgtk-3-doc | 3.4.2-7




-------------- next part --------------
void file_treeview_button_press_event_cb(GtkWidget* widget, GdkEventButton* event, gpointer data);	// callback prototype

g_signal_connect(G_OBJECT(file_treeview), "button-press-event", G_CALLBACK(file_treeview_button_press_event_cb), NULL);


<object class="GtkTreeView" id="file_treeview">
	<property name="visible">True</property>
	<property name="can_focus">True</property>
	<property name="events">GDK_BUTTON_PRESS_MASK | GDK_STRUCTURE_MASK</property>
	<property name="model">file_treeview_store</property>
	<property name="headers_clickable">False</property>
	<property name="search_column">0</property>
	<child internal-child="selection">
	  <object class="GtkTreeSelection" id="file_treeview_selection"/>
	</child>
	<child>
	  <object class="GtkTreeViewColumn" id="file_treeview_file_column">
	    <property name="title" translatable="yes">File Tree</property>
	    <child>
	      <object class="GtkCellRendererPixbuf" id="object_icon"/>
	      <attributes>
		<attribute name="pixbuf">1</attribute>
	      </attributes>
	    </child>
	    <child>
	      <object class="GtkCellRendererText" id="object_name"/>
	      <attributes>
		<attribute name="text">0</attribute>
	      </attributes>
	    </child>
	  </object>
	</child>
</object>


<object class="GtkTreeStore" id="file_treeview_store">
    <columns>
      <!-- column-name gchararray1 -->
      <column type="gchararray"/>
      <!-- column-name GdkPixbuf1 -->
      <column type="GdkPixbuf"/>
    </columns>
  </object>


More information about the pkg-gnome-maintainers mailing list