Now we use a GtkWindow of type GTK_WINDOW_DIALOG as a destination for
Fri Jan 16 00:36:31 1998 Federico Mena <federico@bananoid.nuclecu.unam.mx> * gtk/gtkhandlebox.c: Now we use a GtkWindow of type GTK_WINDOW_DIALOG as a destination for reparenting the child of the handle box. This solves the problem of having X calls in Gtk. It also makes the handle box work with KWM, OLVWM, 4Dwm (so I expect mwm to work as well). I hadn't noticed that previously it only worked with fvwm and twm. * gtk/gtkhandlebox.h (struct _GtkHandleBox): Removed the real_parent field, as it is never used. (struct _GtkHandleBox): Added a float_window field. This is a GtkWindow to where the child is now reparented.
This commit is contained in:
committed by
Arturo Espinosa
parent
a6252a3297
commit
c44ba4b377
@ -795,10 +795,8 @@ void
|
||||
create_handle_box ()
|
||||
{
|
||||
static GtkWidget* window = NULL;
|
||||
GtkWidget* hbox;
|
||||
#if 0
|
||||
GtkWidget* button;
|
||||
#endif
|
||||
GtkWidget *hbox;
|
||||
GtkWidget *toolbar;
|
||||
|
||||
if (!window)
|
||||
{
|
||||
@ -816,22 +814,10 @@ create_handle_box ()
|
||||
hbox = gtk_handle_box_new ();
|
||||
gtk_container_add (GTK_CONTAINER (window), hbox);
|
||||
gtk_widget_show (hbox);
|
||||
#if 0
|
||||
#if 0
|
||||
button = gtk_toggle_button_new_with_label ("Let's try this");
|
||||
#else
|
||||
button = gtk_label_new ("Let's try this");
|
||||
#endif
|
||||
gtk_container_add (GTK_CONTAINER (hbox), button);
|
||||
gtk_widget_set_usize(button, 250, 40);
|
||||
gtk_widget_show (button);
|
||||
#else
|
||||
{
|
||||
GtkWidget *toolbar = make_toolbar (window);
|
||||
gtk_container_add (GTK_CONTAINER (hbox), toolbar);
|
||||
gtk_widget_show (toolbar);
|
||||
}
|
||||
#endif
|
||||
|
||||
toolbar = make_toolbar (window);
|
||||
gtk_container_add (GTK_CONTAINER (hbox), toolbar);
|
||||
gtk_widget_show (toolbar);
|
||||
}
|
||||
|
||||
if (!GTK_WIDGET_VISIBLE (window))
|
||||
|
||||
Reference in New Issue
Block a user