comparison finch/libgnt/gnttree.c @ 18720:a69ab280147b

Fix a /-search bug.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sun, 29 Jul 2007 18:41:28 +0000
parents 3c634117a7ef
children 68fec9f954dd
comparison
equal deleted inserted replaced
18719:c3d0b51d6c60 18720:a69ab280147b
766 if (tree->priv->search) { 766 if (tree->priv->search) {
767 g_source_remove(tree->priv->search_timeout); 767 g_source_remove(tree->priv->search_timeout);
768 g_string_free(tree->priv->search, TRUE); 768 g_string_free(tree->priv->search, TRUE);
769 tree->priv->search = NULL; 769 tree->priv->search = NULL;
770 tree->priv->search_timeout = 0; 770 tree->priv->search_timeout = 0;
771 GNT_WIDGET_UNSET_FLAGS(GNT_WIDGET(tree), GNT_WIDGET_DISABLE_ACTIONS);
771 } 772 }
772 } 773 }
773 774
774 static gboolean 775 static gboolean
775 search_timeout(gpointer data) 776 search_timeout(gpointer data)
1047 { 1048 {
1048 GntWidget *widget = GNT_WIDGET(instance); 1049 GntWidget *widget = GNT_WIDGET(instance);
1049 GntTree *tree = GNT_TREE(widget); 1050 GntTree *tree = GNT_TREE(widget);
1050 tree->show_separator = TRUE; 1051 tree->show_separator = TRUE;
1051 tree->priv = g_new0(GntTreePriv, 1); 1052 tree->priv = g_new0(GntTreePriv, 1);
1052 GNT_WIDGET_SET_FLAGS(widget, GNT_WIDGET_GROW_X | GNT_WIDGET_GROW_Y | GNT_WIDGET_CAN_TAKE_FOCUS); 1053 GNT_WIDGET_SET_FLAGS(widget, GNT_WIDGET_GROW_X | GNT_WIDGET_GROW_Y |
1054 GNT_WIDGET_CAN_TAKE_FOCUS | GNT_WIDGET_NO_SHADOW);
1055 gnt_widget_set_take_focus(widget, TRUE);
1053 widget->priv.minw = 4; 1056 widget->priv.minw = 4;
1054 widget->priv.minh = 1; 1057 widget->priv.minh = 1;
1055 GNTDEBUG; 1058 GNTDEBUG;
1056 } 1059 }
1057 1060
1599 { 1602 {
1600 GntWidget *widget = g_object_new(GNT_TYPE_TREE, 1603 GntWidget *widget = g_object_new(GNT_TYPE_TREE,
1601 "columns", col, 1604 "columns", col,
1602 NULL); 1605 NULL);
1603 1606
1604 GNT_WIDGET_SET_FLAGS(widget, GNT_WIDGET_NO_SHADOW);
1605 gnt_widget_set_take_focus(widget, TRUE);
1606
1607 return widget; 1607 return widget;
1608 } 1608 }
1609 1609
1610 GntTreeRow *gnt_tree_create_row_from_list(GntTree *tree, GList *list) 1610 GntTreeRow *gnt_tree_create_row_from_list(GntTree *tree, GList *list)
1611 { 1611 {