[Glade-devel] small patch



Hi,

I'm all new to collabarative developments.  Here is my
(initial) small patch to CVS glade-signal-editor.c,
regarding usability.  That is, it will now expand the
first row of signal-list dialog, which is what any
user would do more often.

Here goes the diff (diff --context=2 . .)
*** ../../glade3.orig/src/glade-signal-editor.c Mon
Jan 12 21:38:09 2004
--- glade-signal-editor.c       Mon Jan 12 22:04:06
2004
***************
*** 158,161 ****
--- 158,162 ----
        GtkTreeIter *parent = NULL;
        GList *list = NULL;
+       GtkTreePath *path_first = NULL;
        GladeWidgetClassSignal *signal;
    
***************
*** 174,177 ****
--- 175,182 ----
               
glade_signal_editor_dialog_append_signal (lst_model,
signal->nam
e, parent);
        }
+       /* Sridhar R: Expand the first row */
+       path_first = gtk_tree_path_new_first();
+       gtk_tree_view_expand_row(GTK_TREE_VIEW (view),
path_first, FALSE);
+       gtk_tree_path_free(path_first);
  }
  
***************
*** 183,186 ****
--- 188,193 ----
        gint response;
  
+       g_assert(editor);
+       g_assert(editor->class);
        g_return_if_fail (editor->class->signals !=
NULL);
  
***************
*** 663,665 ****
        }
  }
- 
--- 670,671 ----
I have also attached the diff file.

Well, what are all the stuffs that I can start working on?

=====
Sridhar R 
Email: r_sridhar users sf net
WWW:   http://sridhar.has.it

__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]