src/gtkconv.c

changeset 11299
06bb44ed0cf3
parent 11280
e594553bb56c
child 11324
e1b9da9925da
equal deleted inserted replaced
11298:46959efe9342 11299:06bb44ed0cf3
2194 { 2194 {
2195 GaimGtkWindow *gtkwin; 2195 GaimGtkWindow *gtkwin;
2196 gint nb_x, nb_y, x_rel, y_rel; 2196 gint nb_x, nb_y, x_rel, y_rel;
2197 int tab_clicked; 2197 int tab_clicked;
2198 GtkWidget *page; 2198 GtkWidget *page;
2199 GtkWidget *tab;
2199 2200
2200 if (e->button != 1 || e->type != GDK_BUTTON_PRESS) 2201 if (e->button != 1 || e->type != GDK_BUTTON_PRESS)
2201 return FALSE; 2202 return FALSE;
2202 2203
2203 gtkwin = GAIM_GTK_WINDOW(win); 2204 gtkwin = GAIM_GTK_WINDOW(win);
2232 gtkwin->drag_max_x = 0; 2233 gtkwin->drag_max_x = 0;
2233 gtkwin->drag_max_y = 0; 2234 gtkwin->drag_max_y = 0;
2234 2235
2235 /* Find out which tab was dragged. */ 2236 /* Find out which tab was dragged. */
2236 page = gtk_notebook_get_nth_page(GTK_NOTEBOOK(gtkwin->notebook), tab_clicked); 2237 page = gtk_notebook_get_nth_page(GTK_NOTEBOOK(gtkwin->notebook), tab_clicked);
2237 GtkWidget *tab = gtk_notebook_get_tab_label(GTK_NOTEBOOK(gtkwin->notebook), page); 2238 tab = gtk_notebook_get_tab_label(GTK_NOTEBOOK(gtkwin->notebook), page);
2238 2239
2239 gtkwin->drag_min_x = tab->allocation.x + nb_x; 2240 gtkwin->drag_min_x = tab->allocation.x + nb_x;
2240 gtkwin->drag_min_y = tab->allocation.y + nb_y; 2241 gtkwin->drag_min_y = tab->allocation.y + nb_y;
2241 gtkwin->drag_max_x = tab->allocation.width + gtkwin->drag_min_x; 2242 gtkwin->drag_max_x = tab->allocation.width + gtkwin->drag_min_x;
2242 gtkwin->drag_max_y = tab->allocation.height + gtkwin->drag_min_y; 2243 gtkwin->drag_max_y = tab->allocation.height + gtkwin->drag_min_y;

mercurial