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