diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2007-03-27 03:03:29 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2007-03-27 03:03:29 +0000 |
commit | c202fc92c7ccd3adb87b0fbdfc2b0a73f1a32aae (patch) | |
tree | 71daeaace11b4414f1aad24fa6dd8f9d7edb8a62 /src/prefs_display_items.c | |
parent | e6effb250999ccd1ba666506a36e11e815abe2cc (diff) |
win32: made a workaround for the redraw problem in GTK+ 2.10.11.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1577 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/prefs_display_items.c')
-rw-r--r-- | src/prefs_display_items.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/prefs_display_items.c b/src/prefs_display_items.c index 41ebd9fa..66872797 100644 --- a/src/prefs_display_items.c +++ b/src/prefs_display_items.c @@ -170,6 +170,7 @@ PrefsDisplayItemsDialog *prefs_display_items_dialog_create(void) GTK_SELECTION_BROWSE); GTK_WIDGET_UNSET_FLAGS(GTK_CLIST(stock_clist)->column[0].button, GTK_CAN_FOCUS); + gtkut_clist_set_redraw(GTK_CLIST(stock_clist)); /* add/remove button */ btn_vbox = gtk_vbox_new(FALSE, 0); @@ -217,6 +218,7 @@ PrefsDisplayItemsDialog *prefs_display_items_dialog_create(void) #endif GTK_WIDGET_UNSET_FLAGS(GTK_CLIST(shown_clist)->column[0].button, GTK_CAN_FOCUS); + gtkut_clist_set_redraw(GTK_CLIST(shown_clist)); g_signal_connect(G_OBJECT(shown_clist), "select-row", G_CALLBACK(prefs_display_items_shown_select_row), @@ -470,7 +472,6 @@ static void prefs_display_items_add(GtkWidget *widget, gpointer data) item = (PrefsDisplayItem *)gtk_clist_get_row_data(stock_clist, row); if (!item->allow_multiple) { gtk_clist_remove(stock_clist, row); - gtk_widget_queue_resize(GTK_WIDGET(stock_clist)); if (stock_clist->rows == row) gtk_clist_select_row(stock_clist, row - 1, -1); } @@ -505,7 +506,6 @@ static void prefs_display_items_remove(GtkWidget *widget, gpointer data) if (!item) return; gtk_clist_remove(shown_clist, row); - gtk_widget_queue_resize(GTK_WIDGET(shown_clist)); if (shown_clist->rows == row) gtk_clist_select_row(shown_clist, row - 1, -1); |