comparison src/gtkimhtml.c @ 1961:0a3edeba05b6

[gaim-migrate @ 1971] less flashy committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 04 Jun 2001 23:08:51 +0000
parents 9ed99b8c5c9c
children e04869c861f8
comparison
equal deleted inserted replaced
1960:db6f447a6d91 1961:0a3edeba05b6
1328 1328
1329 static void 1329 static void
1330 gtk_imhtml_adjustment_changed (GtkAdjustment *adjustment, 1330 gtk_imhtml_adjustment_changed (GtkAdjustment *adjustment,
1331 GtkIMHtml *imhtml) 1331 GtkIMHtml *imhtml)
1332 { 1332 {
1333 gint width, height;
1334 GdkWindow *window;
1335
1333 if (!GTK_WIDGET_MAPPED (imhtml)) 1336 if (!GTK_WIDGET_MAPPED (imhtml))
1334 return; 1337 return;
1335 1338
1336 gdk_window_clear (GTK_LAYOUT (imhtml)->bin_window); 1339 if (GTK_LAYOUT (imhtml)->freeze_count)
1340 return;
1341
1342 window = GTK_LAYOUT (imhtml)->bin_window;
1343 gdk_window_get_size (window, &width, &height);
1344 gdk_window_clear_area (window, 0, 0, width, BORDER_SIZE + 10);
1345 gdk_window_clear_area (window, 0, height - BORDER_SIZE, width, BORDER_SIZE);
1346
1337 gtk_imhtml_draw_exposed (imhtml); 1347 gtk_imhtml_draw_exposed (imhtml);
1338 } 1348 }
1339 1349
1340 static void 1350 static void
1341 gtk_imhtml_set_scroll_adjustments (GtkLayout *layout, 1351 gtk_imhtml_set_scroll_adjustments (GtkLayout *layout,