comparison src/gtkconv.c @ 11299:421007f39e53

[gaim-migrate @ 13499] Fix a C99ism. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Thu, 18 Aug 2005 06:33:33 +0000
parents 65658ff2deb8
children 772d086e9067
comparison
equal deleted inserted replaced
11298:e26b3f52b6f2 11299:421007f39e53
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;