diff options
author | Jeffrey Stedfast <fejj@src.gnome.org> | 2004-04-02 05:41:54 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2004-04-02 05:41:54 +0800 |
commit | adc6bcdfee79341da44984a1fc785ca8b3e4f0c6 (patch) | |
tree | 3359905447412ab11c275d6f3a591af870d0f6d3 /composer | |
parent | d197dcae41b9b7f2338f44627a4c16d2f9c4901a (diff) | |
download | gsoc2013-evolution-adc6bcdfee79341da44984a1fc785ca8b3e4f0c6.tar gsoc2013-evolution-adc6bcdfee79341da44984a1fc785ca8b3e4f0c6.tar.gz gsoc2013-evolution-adc6bcdfee79341da44984a1fc785ca8b3e4f0c6.tar.bz2 gsoc2013-evolution-adc6bcdfee79341da44984a1fc785ca8b3e4f0c6.tar.lz gsoc2013-evolution-adc6bcdfee79341da44984a1fc785ca8b3e4f0c6.tar.xz gsoc2013-evolution-adc6bcdfee79341da44984a1fc785ca8b3e4f0c6.tar.zst gsoc2013-evolution-adc6bcdfee79341da44984a1fc785ca8b3e4f0c6.zip |
simplify menu_item_set_label()
svn path=/trunk/; revision=25289
Diffstat (limited to 'composer')
-rw-r--r-- | composer/e-msg-composer.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index f00cab01d7..b3516396c3 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -2040,18 +2040,13 @@ signature_removed (ESignatureList *signatures, ESignature *sig, EMsgComposer *co } static void -menu_item_set_label (GtkWidget *widget, const char *label) +menu_item_set_label (GtkMenuItem *item, const char *label) { - GList *child; + GtkWidget *widget; - child = gtk_container_get_children ((GtkContainer *) widget); - while (child != NULL) { - if (GTK_IS_LABEL (child->data)) { - gtk_label_set_text (child->data, label); - break; - } - child = child->next; - } + widget = gtk_bin_get_child ((GtkBin *) item); + if (GTK_IS_LABEL (widget)) + gtk_label_set_text ((GtkLabel *) widget, label); } static void |