[Glade-devel] small patch



--0-293644663-1074000304=:1847
Content-Type: text/plain; charset=us-ascii
Content-Id: 
Content-Disposition: inline

[I'm not sure whether I have sent this to _wrong_
address glade-devel-request lists ximian com]

Here is the small patch that will expand the first row
by default in signal-list dialog.  bcoz, that is what
most of the times users will do when assigning
signals.  Afterall, I am new to this collaborative
developement.

Here is the patch
*** ../../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->name, 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.

=====
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
--0-293644663-1074000304=:1847
Content-Type: application/octet-stream; name="signal-editor.diff"
Content-Transfer-Encoding: base64
Content-Description: signal-editor.diff
Content-Disposition: attachment; filename="signal-editor.diff"

KioqIC4uLy4uL2dsYWRlMy5vcmlnL3NyYy9nbGFkZS1zaWduYWwtZWRpdG9y
LmMJTW9uIEphbiAxMiAyMTozODowOSAyMDA0Ci0tLSBnbGFkZS1zaWduYWwt
ZWRpdG9yLmMJTW9uIEphbiAxMiAyMjowNDowNiAyMDA0CioqKioqKioqKioq
KioqKgoqKiogMTU4LDE2MSAqKioqCi0tLSAxNTgsMTYyIC0tLS0KICAJR3Rr
VHJlZUl0ZXIgKnBhcmVudCA9IE5VTEw7CiAgCUdMaXN0ICpsaXN0ID0gTlVM
TDsKKyAJR3RrVHJlZVBhdGggKnBhdGhfZmlyc3QgPSBOVUxMOwogIAlHbGFk
ZVdpZGdldENsYXNzU2lnbmFsICpzaWduYWw7CiAgICAKKioqKioqKioqKioq
KioqCioqKiAxNzQsMTc3ICoqKioKLS0tIDE3NSwxODIgLS0tLQogICAJCWds
YWRlX3NpZ25hbF9lZGl0b3JfZGlhbG9nX2FwcGVuZF9zaWduYWwgKGxzdF9t
b2RlbCwgc2lnbmFsLT5uYW1lLCBwYXJlbnQpOwogIAl9CisgCS8qIFNyaWRo
YXIgUjogRXhwYW5kIHRoZSBmaXJzdCByb3cgKi8KKyAJcGF0aF9maXJzdCA9
IGd0a190cmVlX3BhdGhfbmV3X2ZpcnN0KCk7CisgCWd0a190cmVlX3ZpZXdf
ZXhwYW5kX3JvdyhHVEtfVFJFRV9WSUVXICh2aWV3KSwgcGF0aF9maXJzdCwg
RkFMU0UpOworIAlndGtfdHJlZV9wYXRoX2ZyZWUocGF0aF9maXJzdCk7CiAg
fQogIAoqKioqKioqKioqKioqKioKKioqIDE4MywxODYgKioqKgotLS0gMTg4
LDE5MyAtLS0tCiAgCWdpbnQgcmVzcG9uc2U7CiAgCisgCWdfYXNzZXJ0KGVk
aXRvcik7CisgCWdfYXNzZXJ0KGVkaXRvci0+Y2xhc3MpOwogIAlnX3JldHVy
bl9pZl9mYWlsIChlZGl0b3ItPmNsYXNzLT5zaWduYWxzICE9IE5VTEwpOwog
IAoqKioqKioqKioqKioqKioKKioqIDY2Myw2NjUgKioqKgogIAl9CiAgfQot
IAotLS0gNjcwLDY3MSAtLS0tCg==

--0-293644663-1074000304=:1847--




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