changeset 17274:5241d388f463

Change pidgin_separator to return the separator added to the menu.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Thu, 24 May 2007 20:35:07 +0000
parents 7bea01b92cc0
children 319bcb73eb4e
files ChangeLog.API pidgin/gtkutils.c pidgin/gtkutils.h
diffstat 3 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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"
 
--- 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)
--- 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.