# HG changeset patch # User Sadrul Habib Chowdhury # Date 1180038907 0 # Node ID 5241d388f463997d8582fd1d0e574c8ee8bd9cba # Parent 7bea01b92cc08b6db8f3cba60c4e6c9c4177af36 Change pidgin_separator to return the separator added to the menu. diff -r 7bea01b92cc0 -r 5241d388f463 ChangeLog.API --- a/ChangeLog.API Thu May 24 06:26:31 2007 +0000 +++ b/ChangeLog.API Thu May 24 20:35:07 2007 +0000 @@ -5,6 +5,9 @@ * purple_conversation_get_extended_menu * purple_conversation_do_command + Changed: + * pidgin_separator returns the separator added to the menu. + Signals - Added: (See the Doxygen docs for details on all signals.) * "conversation-extended-menu" diff -r 7bea01b92cc0 -r 5241d388f463 pidgin/gtkutils.c --- a/pidgin/gtkutils.c Thu May 24 06:26:31 2007 +0000 +++ b/pidgin/gtkutils.c Thu May 24 20:35:07 2007 +0000 @@ -237,13 +237,14 @@ gtk_widget_show(to_toggle); } -void pidgin_separator(GtkWidget *menu) +GtkWidget *pidgin_separator(GtkWidget *menu) { GtkWidget *menuitem; menuitem = gtk_separator_menu_item_new(); gtk_widget_show(menuitem); gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem); + return menuitem; } GtkWidget *pidgin_new_item(GtkWidget *menu, const char *str) diff -r 7bea01b92cc0 -r 5241d388f463 pidgin/gtkutils.h --- a/pidgin/gtkutils.h Thu May 24 06:26:31 2007 +0000 +++ b/pidgin/gtkutils.h Thu May 24 20:35:07 2007 +0000 @@ -130,8 +130,10 @@ * Adds a separator to a menu. * * @param menu The menu to add a separator to. + * + * @return The separator. */ -void pidgin_separator(GtkWidget *menu); +GtkWidget *pidgin_separator(GtkWidget *menu); /** * Creates a menu item.