Author: stephan
Date: 2006-09-26 11:05:02 +0000 (Tue, 26 Sep 2006)
New Revision: 23211

Modified:
   xarchiver/branches/xarchiver-psybsd/src/add_dialog.c
   xarchiver/branches/xarchiver-psybsd/src/main_window.c
Log:
Enable search in tree, fix set-style stuff.



Modified: xarchiver/branches/xarchiver-psybsd/src/add_dialog.c
===================================================================
--- xarchiver/branches/xarchiver-psybsd/src/add_dialog.c        2006-09-25 
20:22:37 UTC (rev 23210)
+++ xarchiver/branches/xarchiver-psybsd/src/add_dialog.c        2006-09-26 
11:05:02 UTC (rev 23211)
@@ -2,8 +2,7 @@
  *  Copyright (c) 2006 Stephan Arts <[EMAIL PROTECTED]>
  *
  *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 of the License, or
+ *  it under the terms of the GNU General Public License as published by *  
the Free Software Foundation; either version 2 of the License, or
  *  (at your option) any later version.
  *
  *  This program is distributed in the hope that it will be useful,

Modified: xarchiver/branches/xarchiver-psybsd/src/main_window.c
===================================================================
--- xarchiver/branches/xarchiver-psybsd/src/main_window.c       2006-09-25 
20:22:37 UTC (rev 23210)
+++ xarchiver/branches/xarchiver-psybsd/src/main_window.c       2006-09-26 
11:05:02 UTC (rev 23211)
@@ -254,6 +254,8 @@
 
        window->treeview = gtk_tree_view_new();
 
+       gtk_tree_view_set_enable_search(GTK_TREE_VIEW(window->treeview), TRUE);
+
        gtk_container_add(GTK_CONTAINER(window->scrollwindow), 
window->treeview);
 
        gtk_widget_show(window->scrollwindow);
@@ -327,7 +329,7 @@
        if(window->working_node)
                items = ((LXAEntry *)window->working_node->data)->children;
 
-       if(!gtk_icon_theme_has_icon(window->icon_theme, "folder"))
+       if(!(gtk_icon_theme_has_icon(window->icon_theme, "folder") && 
gtk_icon_theme_has_icon(window->icon_theme, "unknown") && 
gtk_icon_theme_has_icon(window->icon_theme, "go-up")))
                window->props._show_icons = FALSE;
        else
                window->props._show_icons = TRUE;
@@ -690,8 +692,8 @@
 
                renderer = gtk_cell_renderer_pixbuf_new();
                column = gtk_tree_view_column_new_with_attributes("", renderer, 
"icon-name", 0, NULL);
-               gtk_tree_view_column_set_resizable(column, TRUE);
-               gtk_tree_view_column_set_sort_column_id(column, 0);
+               gtk_tree_view_column_set_resizable(column, FALSE);
+               //gtk_tree_view_column_set_sort_column_id(column, 0);
                gtk_tree_view_append_column(GTK_TREE_VIEW(window->treeview), 
column);
                for(x = 0; x < archive->column_number; x++)
                {
@@ -707,6 +709,7 @@
                        gtk_tree_view_column_set_sort_column_id(column, x+1);
                        
gtk_tree_view_append_column(GTK_TREE_VIEW(window->treeview), column);
                }
+               
gtk_tree_view_set_search_column(GTK_TREE_VIEW(window->treeview), 1);
        } else
        {
                liststore = gtk_list_store_newv(archive->column_number, 
archive->column_types); 
@@ -724,6 +727,7 @@
                        gtk_tree_view_column_set_sort_column_id(column, x);
                        
gtk_tree_view_append_column(GTK_TREE_VIEW(window->treeview), column);
                }
+               
gtk_tree_view_set_search_column(GTK_TREE_VIEW(window->treeview), 0);
        }
        gtk_tree_view_set_model(GTK_TREE_VIEW(window->treeview), 
GTK_TREE_MODEL(liststore));
 }
@@ -849,7 +853,7 @@
                        }
                        else
                        { 
-                               GtkWidget *dialog = 
gtk_message_dialog_new(GTK_WINDOW(main_window), 0, GTK_MESSAGE_WARNING, 
GTK_BUTTONS_OK, "Viewing of file is not yet implemented");
+                               GtkWidget *dialog = 
gtk_message_dialog_new(GTK_WINDOW(main_window), 0, GTK_MESSAGE_QUESTION, 
GTK_BUTTONS_OK, "What do you want to do today?");
                                gtk_dialog_run(GTK_DIALOG(dialog));
                                gtk_widget_destroy(dialog);
                        }

_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to