comparison src/skins/ui_dock.c @ 3108:9978be206b93

Clean up some of the roll-up code so that it no longer causes problems with metacity/xfwm4. (How? I don't know.)
author John Lindgren <john.lindgren@tds.net>
date Thu, 30 Apr 2009 18:23:44 -0400
parents f7613eafe9f0
children 8b97f9560dc3
comparison
equal deleted inserted replaced
3107:2a8eb3450ea4 3108:9978be206b93
323 GdkGeometry hints; 323 GdkGeometry hints;
324 hints.min_width = new_w; 324 hints.min_width = new_w;
325 hints.min_height = new_h; 325 hints.min_height = new_h;
326 hints.max_width = new_w; 326 hints.max_width = new_w;
327 hints.max_height = new_h; 327 hints.max_height = new_h;
328 328 gtk_window_resize (widget, new_w, new_h);
329 gdk_window_resize(GTK_WIDGET(widget)->window, new_w, new_h); 329 gtk_window_set_geometry_hints (widget, 0, & hints,
330 gdk_window_set_geometry_hints(GTK_WIDGET(widget)->window, &hints, 330 GDK_HINT_MIN_SIZE | GDK_HINT_MAX_SIZE);
331 GDK_HINT_MIN_SIZE | GDK_HINT_MAX_SIZE);
332 } 331 }
333 332
334 void 333 void
335 dock_shade(GList * window_list, GtkWindow * widget, gint new_h) 334 dock_shade(GList * window_list, GtkWindow * widget, gint new_h)
336 { 335 {
412 } 411 }
413 g_list_free(mlist); 412 g_list_free(mlist);
414 } 413 }
415 g_list_free(slist); 414 g_list_free(slist);
416 free_docked_list(docked_list); 415 free_docked_list(docked_list);
417 gtk_window_move(widget, x, y + off_y - (new_h - h));
418 dock_window_resize(widget, w, new_h, w, h); 416 dock_window_resize(widget, w, new_h, w, h);
419 } 417 }
420 418
421 void 419 void
422 dock_move_press(GList * window_list, GtkWindow * w, 420 dock_move_press(GList * window_list, GtkWindow * w,