Commit 0f35fd25 authored by Jiri (George) Lebl's avatar Jiri (George) Lebl Committed by George Lebl

prevent flashes during moving

Sat Jul 04 12:33:00 1998  George Lebl  <jirka@5z.com>

        * snapped-widget.c: prevent flashes during moving

        * main.c: prevent the bug where a panel drag became
          persistent
parent 6848449c
Sat Jul 04 12:33:00 1998 George Lebl <jirka@5z.com>
* snapped-widget.c: prevent flashes during moving
* main.c: prevent the bug where a panel drag became
persistent
Sat Jul 04 01:41:42 1998 George Lebl <jirka@5z.com>
* menu.c: add a way to add edge (snapped) panels
......
Sat Jul 04 12:33:00 1998 George Lebl <jirka@5z.com>
* snapped-widget.c: prevent flashes during moving
* main.c: prevent the bug where a panel drag became
persistent
Sat Jul 04 01:41:42 1998 George Lebl <jirka@5z.com>
* menu.c: add a way to add edge (snapped) panels
......
......@@ -1071,7 +1071,7 @@ panel_button_press(GtkWidget *widget, GdkEventButton *event, gpointer data)
cursor = gdk_cursor_new (GDK_FLEUR);
gtk_grab_add(widget);
gdk_pointer_grab (widget->window,
TRUE,
FALSE,
PANEL_EVENT_MASK,
NULL,
cursor,
......
......@@ -782,12 +782,21 @@ snapped_widget_change_params(SnappedWidget *snapped,
oldorient = PANEL_HORIZONTAL;
else
oldorient = PANEL_VERTICAL;
if(oldorient != orient) {
int w,h,t;
GList *list;
PanelWidget *panel = PANEL_WIDGET(snapped->panel);
gdk_window_get_size(GTK_WIDGET(snapped)->window,&w,&h);
t = h>w?w:h;
resize_window(GTK_WIDGET(snapped),t,t);
for(list = panel->applet_list;
list != NULL;
list = g_list_next(list)) {
AppletData *ad = list->data;
gtk_fixed_move(GTK_FIXED(panel->fixed),ad->applet,0,0);
}
}
panel_widget_change_params(PANEL_WIDGET(snapped->panel),
......@@ -818,6 +827,7 @@ snapped_widget_change_params(SnappedWidget *snapped,
snapped_widget_queue_pop_down(snapped);
}
void
snapped_widget_change_pos(SnappedWidget *snapped,
SnappedPos pos)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment