Cosmetic changes

This commit is contained in:
Matthias Clasen 2012-07-13 23:05:36 -04:00
parent 81cf7707ef
commit 1bcefc47e1

View File

@ -20,8 +20,8 @@
/**
* SECTION:gtkmenubutton
* @Short_description: A widget that shows a menu when clicked on
* @Title: GtkMenuButton
* @short_description: A widget that shows a menu when clicked on
* @title: GtkMenuButton
*
* The #GtkMenuButton widget is used to display a menu when clicked on.
* This menu can be provided either as a #GtkMenu, or an abstract #GMenuModel.
@ -68,9 +68,9 @@ static void gtk_menu_button_finalize (GObject *object);
static void
gtk_menu_button_set_property (GObject *object,
guint property_id,
const GValue *value,
GParamSpec *pspec)
guint property_id,
const GValue *value,
GParamSpec *pspec)
{
GtkMenuButton *self = GTK_MENU_BUTTON (object);
@ -95,9 +95,9 @@ gtk_menu_button_set_property (GObject *object,
static void
gtk_menu_button_get_property (GObject *object,
guint property_id,
GValue *value,
GParamSpec *pspec)
guint property_id,
GValue *value,
GParamSpec *pspec)
{
GtkMenuButtonPrivate *priv = GTK_MENU_BUTTON (object)->priv;
@ -132,11 +132,11 @@ gtk_menu_button_state_flags_changed (GtkWidget *widget,
}
static void
menu_position_down_func (GtkMenu *menu,
int *x,
int *y,
gboolean *push_in,
GtkMenuButton *menu_button)
menu_position_down_func (GtkMenu *menu,
gint *x,
gint *y,
gboolean *push_in,
GtkMenuButton *menu_button)
{
GtkMenuButtonPrivate *priv = menu_button->priv;
GtkWidget *widget = GTK_WIDGET (menu_button);
@ -189,11 +189,11 @@ menu_position_down_func (GtkMenu *menu,
}
static void
menu_position_up_func (GtkMenu *menu,
gint *x,
gint *y,
gboolean *push_in,
GtkMenuButton *menu_button)
menu_position_up_func (GtkMenu *menu,
gint *x,
gint *y,
gboolean *push_in,
GtkMenuButton *menu_button)
{
GtkMenuButtonPrivate *priv = menu_button->priv;
GtkWidget *widget = GTK_WIDGET (menu_button);
@ -242,11 +242,11 @@ menu_position_up_func (GtkMenu *menu,
}
static void
menu_position_side_func (GtkMenu *menu,
int *x,
int *y,
gboolean *push_in,
GtkMenuButton *menu_button)
menu_position_side_func (GtkMenu *menu,
gint *x,
gint *y,
gboolean *push_in,
GtkMenuButton *menu_button)
{
GtkMenuButtonPrivate *priv = menu_button->priv;
GtkAllocation toggle_allocation;
@ -342,8 +342,8 @@ gtk_menu_button_toggled (GtkToggleButton *button)
}
static gboolean
gtk_menu_button_button_press_event (GtkWidget *widget,
GdkEventButton *event)
gtk_menu_button_button_press_event (GtkWidget *widget,
GdkEventButton *event)
{
if (event->button == GDK_BUTTON_PRIMARY)
{
@ -483,7 +483,7 @@ gtk_menu_button_new (void)
* when the pop-up menu disappears.
*/
static int
menu_deactivate_cb (GtkMenuShell *menu_shell,
menu_deactivate_cb (GtkMenuShell *menu_shell,
GtkMenuButton *menu_button)
{
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (menu_button), FALSE);
@ -621,7 +621,7 @@ gtk_menu_button_get_menu (GtkMenuButton *menu_button)
*/
void
gtk_menu_button_set_menu_model (GtkMenuButton *menu_button,
GMenuModel *menu_model)
GMenuModel *menu_model)
{
GtkMenuButtonPrivate *priv;
GtkWidget *menu;
@ -677,7 +677,7 @@ gtk_menu_button_get_menu_model (GtkMenuButton *menu_button)
*/
void
gtk_menu_button_set_align_widget (GtkMenuButton *menu_button,
GtkWidget *align_widget)
GtkWidget *align_widget)
{
GtkMenuButtonPrivate *priv;