GNOME Bugzilla – Bug 618271
Add gtk_window_has_group()
Last modified: 2011-02-04 16:12:18 UTC
Created attachment 160718 [details] [review] window: Add gtk_window_get_has_group() Since gtk_window_get_group() always returns a valid pointer there's no way to check whether the window has an explicit group or not. In order to build with GSEAL most of the modules using direct access to GtkWindow::group are using gtk_window_get_group() now. See comment 36 on bug #593601. I think there should be an accessor for such cases.
It might be good to document the use case. Why would you need to check if there is a non-default group? Wouldn't you *know* if you created a group yourself?
Created attachment 160739 [details] [review] window: Add gtk_window_has_group() Updated patch, use gtk_window_has_group() instead of gtk_window_get_has_group() as suggested on IRC
(In reply to comment #1) > It might be good to document the use case. Why would you need to check if there > is a non-default group? Wouldn't you *know* if you created a group yourself? Well, the use cases I've seen are code copy-pated from GtkTreeView interactive search stuff.
Comment on attachment 160739 [details] [review] window: Add gtk_window_has_group() commit 6bac9dfd28524775deb7d6f5485efb4604221103
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
Also, committed in gtk-2-22 in commit 4acc2716cb7e900245a54392db44927ed84a7eee