Mercurial > audlegacy-plugins
comparison src/skins/ui_dock.c @ 3034:f7613eafe9f0
Don't use deprecated gdk functions
author | Tomasz Mon <desowin@gmail.com> |
---|---|
date | Fri, 10 Apr 2009 12:28:44 +0200 |
parents | 963796db51ea |
children | 9978be206b93 |
comparison
equal
deleted
inserted
replaced
3033:70eb8b174e15 | 3034:f7613eafe9f0 |
---|---|
318 } | 318 } |
319 | 319 |
320 void | 320 void |
321 dock_window_resize(GtkWindow * widget, gint new_w, gint new_h, gint w, gint h) | 321 dock_window_resize(GtkWindow * widget, gint new_w, gint new_h, gint w, gint h) |
322 { | 322 { |
323 gdk_window_set_hints(GTK_WIDGET(widget)->window, 0, 0, MIN(w, new_w), | 323 GdkGeometry hints; |
324 MIN(h, new_h), MAX(w, new_w), MAX(h, new_h), | 324 hints.min_width = new_w; |
325 GDK_HINT_MIN_SIZE | GDK_HINT_MAX_SIZE); | 325 hints.min_height = new_h; |
326 hints.max_width = new_w; | |
327 hints.max_height = new_h; | |
328 | |
326 gdk_window_resize(GTK_WIDGET(widget)->window, new_w, new_h); | 329 gdk_window_resize(GTK_WIDGET(widget)->window, new_w, new_h); |
327 gdk_window_set_hints(GTK_WIDGET(widget)->window, 0, 0, new_w, new_h, | 330 gdk_window_set_geometry_hints(GTK_WIDGET(widget)->window, &hints, |
328 new_w, new_h, GDK_HINT_MIN_SIZE | GDK_HINT_MAX_SIZE); | 331 GDK_HINT_MIN_SIZE | GDK_HINT_MAX_SIZE); |
329 } | 332 } |
330 | 333 |
331 void | 334 void |
332 dock_shade(GList * window_list, GtkWindow * widget, gint new_h) | 335 dock_shade(GList * window_list, GtkWindow * widget, gint new_h) |
333 { | 336 { |