Can close windows with set_deletable(False)

Bug #240794 reported by 816_8055
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
compiz (Ubuntu)
Expired
Low
Unassigned

Bug Description

#!/usr/bin/python
import gtk
w=gtk.Window()
w.set_deletable(False)
w.connect("destroy",gtk.main_quit)
w.show_all()
gtk.main()

This small script should open a window that cannot be closed.
But it only works without Compiz being enabled.
set_resizable(False) doesn't work as well. (This should prevent resizing)

Ubuntu 7.10 (Gutsy)
Ubuntu 8.04 (Hardy)
(maybe other)

Revision history for this message
xteejx (xteejx-deactivatedaccount) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering is this still an issue for you? Can you try with latest Ubuntu release? Thanks in advance.

Revision history for this message
816_8055 (816-8055) wrote :

It's still the same with 8.04.1 and 8.10.
I have tried the same in C as well:

-------
#include <gtk/gtk.h>

int main(int argc, char **argv)
{
 GtkWidget *window;
 gtk_init(&argc, &argv);
 window=gtk_window_new(GTK_WINDOW_TOPLEVEL);
 gtk_window_set_deletable((GtkWindow*) window, FALSE);
 gtk_signal_connect(GTK_OBJECT(window), "destroy", GTK_SIGNAL_FUNC(gtk_main_qui$
 gtk_widget_show(window);
 gtk_main();
 return 0;
}
-------

As a workaround I've disabled Compiz :)
But nevertheless it is a bug.

Revision history for this message
xteejx (xteejx-deactivatedaccount) wrote :

Thanks for reporting this bug and any supporting documentation. Since this bug has enough information provided for a developer to begin work, I'm going to mark it as confirmed and let them handle it from here. Thanks for taking the time to make Ubuntu better!

Revision history for this message
Glyph Lefkowitz (glyph) wrote :

I found this workaround in update-manager, which effectively hides the close button under compiz:

    gtkwindow.window.set_functions(gtk.gdk.FUNC_MOVE)

Revision history for this message
Marcos Diaz (marcos-diaz) wrote :

Still in GTK 2.16.1 / Gnome 2.26.1

Changed in compiz (Ubuntu):
importance: Undecided → Medium
summary: - set_deletable(False) does not work on gtk windows with compiz enabled
+ Can close windows with set_deletable(False)
Changed in compiz (Ubuntu):
importance: Medium → Low
status: Confirmed → Triaged
Revision history for this message
xteejx (xteejx-deactivatedaccount) wrote :

I have just noticed that this bug hasn't been looked at or updated. Can you test this in 10.10 please and let us know if it is still an issue? Thank you.

Changed in compiz (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for compiz (Ubuntu) because there has been no activity for 60 days.]

Changed in compiz (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.