<p>I have a Glade GUI description file with a <code>GtkTreeView</code> in a <code>GtkHBox</code> in a window; and there's a handler for the <code>row_activated</code> signal. Now, Glade has automatically set the "events" property (inherited from <code>GtkWidget</code>) of that treeview to some value (<code>GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</code>). And there are two strange things with this:</p>

<ul>
<li>removing the pre-set value (so that the property is empty) doesn't seem to break the application (at least not with the old GTK 2.10 I have atm).</li>
<li>in fact, an annoying bug I has seen before (where the treeview items would not correctly react to expand or collapse clicks) is now gone!</li>
</ul>

<p>I have yet to test this with a newer GTK version, but the question is already there: exactly what is the purpose for this <code>events</code> property? And why does Glade automatically and unnecessarily set it to some value? Does this have some side effects I'm not aware of?</p>

[{'answer_id': 64914, 'author': 'user7458', 'author_id': 7458, 'author_profile': 'https://Stackoverflow.com/users/7458', 'pm_score': 0, 'selected': False, 'text': "<p>Doesn't this mask indicate the events you're willing to receive?  In this case, you'll probably want to receive notification that the user has clicked or double-clicked an item in the GtkTreeView, and you'll want to register callbacks to handle these events.</p>\n"}, {'answer_id': 65017, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 0, 'selected': False, 'text': '<p>me.yahoo.com/a/kUQ7zeQ: but even if I set the property to an empty string as mentioned, the <code>row_activated</code> handler is still called when I double-click on a row (or press Enter or Space). So the treeview still gets events...</p>\n'}, {'answer_id': 326024, 'author': 'Johan Dahlin', 'author_id': 14337, 'author_profile': 'https://Stackoverflow.com/users/14337', 'pm_score': 1, 'selected': False, 'text': "<p>It's a bug in glade, it always sets the event property of widgets it create. It has no notion of the default value of a property so it always sets it.</p>\n"}]
['https://Stackoverflow.com/questions/64518', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/-1/']