[PVFS2-CVS] commit by rbross in pvfs2/src/apps/karma: status.c

CVS commit program cvs at parl.clemson.edu
Thu Feb 12 18:25:28 EST 2004


Update of /projects/cvsroot/pvfs2/src/apps/karma
In directory parlweb:/tmp/cvs-serv11382/src/apps/karma

Modified Files:
	status.c 
Log Message:
Spelling fixes, misc. stuff.


Index: status.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/apps/karma/status.c,v
diff -p -u -r1.4 -r1.5
--- status.c	12 Feb 2004 19:24:49 -0000	1.4
+++ status.c	12 Feb 2004 23:25:28 -0000	1.5
@@ -562,6 +562,7 @@ static void gui_status_server_popup(stru
     GtkWidget *dialog, *view;
     GtkListStore *list;
     GtkTreeViewColumn *col[GUI_DETAILS_TYPE+1];
+    GtkTreeSelection *selection;
     int svr_list[2];
 
     dialog = gtk_dialog_new_with_buttons("Server Details",
@@ -588,12 +589,18 @@ static void gui_status_server_popup(stru
 			  svr_stat_ct,
 			  svr_list);
 
+    /* make it so that one cannot select things in the list */
+    selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(view));
+    gtk_tree_selection_set_mode(selection, GTK_SELECTION_NONE);
+
     /* unref list so it will be freed when view is destroyed */
     g_object_unref(list);
 
     /* drop contents into popup; display */
     gtk_container_add(GTK_CONTAINER(GTK_DIALOG(dialog)->vbox),
 		      view);
+
+    /* TODO: COME UP WITH SOME WAY TO KEEP LIST FROM STEALING FOCUS! */
     gtk_widget_show_all(dialog);
 
     return;



More information about the PVFS2-CVS mailing list