Mercurial > audlegacy
changeset 4279:6c97378391b8
Remove unused functions.
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Mon, 11 Feb 2008 04:05:26 -0600 |
parents | 0a9e1d9eae7b |
children | 263b2d27346f 3c673b6803c1 |
files | src/audacious/dock.c |
diffstat | 1 files changed, 0 insertions(+), 69 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audacious/dock.c Mon Feb 11 03:57:30 2008 -0600 +++ b/src/audacious/dock.c Mon Feb 11 04:05:26 2008 -0600 @@ -390,75 +390,6 @@ dock_window_resize(widget, w, new_h, w, h); } -static GList * -resize_move_list(GList * list, GtkWindow * widget, - gint offset_x, gint offset_y) -{ - gint x, y, w, h; - GList *node; - DockedWindow *dw; - - gtk_window_get_position(widget, &x, &y); - gtk_window_get_size(widget, &w, &h); - - - for (node = list; node;) { - gint dx, dy, dwidth, dheight; - dw = node->data; - gtk_window_get_position(dw->w, &dx, &dy); - gtk_window_get_size(dw->w, &dwidth, &dheight); - if (is_docked(x, y, w, h, dx, dy, dwidth, dheight)) { - - list = g_list_remove_link(list, node); - g_list_free_1(node); - node = list = resize_move_list(list, dw->w, offset_x, offset_y); - } - else - node = g_list_next(node); - } - gtk_window_move(widget, x + offset_x, y + offset_y); - return list; -} - -static GList * -resize_calc_offset(GList * list, GtkWindow * widget, - gint offset_x, gint offset_y, - gint * goffset_x, gint * goffset_y) -{ - gint x, y, w, h; - GList *node; - DockedWindow *dw; - - gtk_window_get_position(widget, &x, &y); - gtk_window_get_size(widget, &w, &h); - - - for (node = list; node;) { - gint dx, dy, dwidth, dheight; - dw = node->data; - gtk_window_get_position(dw->w, &dx, &dy); - gtk_window_get_size(dw->w, &dwidth, &dheight); - if (is_docked(x, y, w, h, dx, dy, dwidth, dheight)) { - if (dx + offset_x + dwidth > gdk_screen_width()) { - offset_x -= dx + offset_x + dwidth - gdk_screen_width(); - (*goffset_x) -= dx + offset_x + dwidth - gdk_screen_width(); - } - if (dy + offset_y + dheight > gdk_screen_height()) { - offset_y -= dy + offset_y + dheight - gdk_screen_height(); - (*goffset_y) -= dy + offset_y + dheight - gdk_screen_height(); - } - list = g_list_remove_link(list, node); - g_list_free_1(node); - node = list = - resize_calc_offset(list, dw->w, offset_x, offset_y, - goffset_x, goffset_y); - } - else - node = g_list_next(node); - } - return list; -} - void dock_move_press(GList * window_list, GtkWindow * w, GdkEventButton * event, gboolean move_list)