changeset 1416:b0c1d9dc4b08

[xemacs-hg @ 2003-04-15 17:21:34 by stephent] pedantic style <87el43bruu.fsf@tleepslib.sk.tsukuba.ac.jp>
author stephent
date Tue, 15 Apr 2003 17:21:36 +0000
parents d47e87058e8f
children da386bee3166
files src/ChangeLog src/event-gtk.c src/menubar-gtk.c
diffstat 3 files changed, 40 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Tue Apr 15 17:01:57 2003 +0000
+++ b/src/ChangeLog	Tue Apr 15 17:21:36 2003 +0000
@@ -1,3 +1,19 @@
+2003-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
+
+	* menubar-gtk.c (gtk_xemacs_menubar_class_init):
+	(gtk_xemacs_menubar_init):
+	(gtk_xemacs_menubar_size_request):
+	(menu_descriptor_to_widget_1):
+	(menu_descriptor_to_widget):
+	(popdown_menu_cb):
+	(reinit_vars_of_menubar_gtk):
+	* event-gtk.c (emacs_gtk_key_event_handler):
+	(emacs_gtk_button_event_handler):
+	(emacs_gtk_motion_event_handler):
+	(reinit_vars_of_event_gtk):
+	(event_name):
+	Reformat function definitions correctly.
+
 2003-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
 
 	* symsinit.h (reinit_console_type_create_gtk):
--- a/src/event-gtk.c	Tue Apr 15 17:01:57 2003 +0000
+++ b/src/event-gtk.c	Tue Apr 15 17:21:36 2003 +0000
@@ -1476,17 +1476,20 @@
     return (FALSE);
 }
 
-gint emacs_gtk_key_event_handler(GtkWidget *widget, GdkEventKey *event)
+gint
+emacs_gtk_key_event_handler (GtkWidget *widget, GdkEventKey *event)
 {
     return (generic_event_handler (widget, (GdkEvent *) event));
 }
 
-gint emacs_gtk_button_event_handler(GtkWidget *widget, GdkEventButton *event)
+gint
+emacs_gtk_button_event_handler (GtkWidget *widget, GdkEventButton *event)
 {
     return (generic_event_handler (widget, (GdkEvent *) event));
 }
 
-gint emacs_gtk_motion_event_handler (GtkWidget *widget, GdkEventMotion *event)
+gint
+emacs_gtk_motion_event_handler (GtkWidget *widget, GdkEventMotion *event)
 {
     return (generic_event_handler (widget, (GdkEvent *) event));
 }
@@ -1594,7 +1597,8 @@
   DEFSYMBOL (Qsans_modifiers);
 }
 
-void reinit_vars_of_event_gtk (void)
+void
+reinit_vars_of_event_gtk (void)
 {
   gtk_event_stream = xnew_and_zero (struct event_stream);
   gtk_event_stream->event_pending_p 	= emacs_gtk_event_pending_p;
@@ -1653,7 +1657,8 @@
 }
 
 /* Bogus utility routines */
-static const char *event_name (GdkEvent *ev)
+static const char *
+event_name (GdkEvent *ev)
 {
   return (gtk_event_name (ev->any.type));
 }
--- a/src/menubar-gtk.c	Tue Apr 15 17:01:57 2003 +0000
+++ b/src/menubar-gtk.c	Tue Apr 15 17:21:36 2003 +0000
@@ -115,7 +115,8 @@
 
 static GtkWidgetClass *parent_class;
 
-static void gtk_xemacs_menubar_class_init	(GtkXEmacsMenubarClass *klass)
+static void
+gtk_xemacs_menubar_class_init	(GtkXEmacsMenubarClass *klass)
 {
   GtkWidgetClass *widget_class;
 
@@ -125,11 +126,13 @@
   widget_class->size_request = gtk_xemacs_menubar_size_request;
 }
 
-static void gtk_xemacs_menubar_init		(GtkXEmacsMenubar *xemacs)
+static void
+gtk_xemacs_menubar_init		(GtkXEmacsMenubar *xemacs)
 {
 }
 
-static void gtk_xemacs_menubar_size_request	(GtkWidget *widget, GtkRequisition *requisition)
+static void
+gtk_xemacs_menubar_size_request	(GtkWidget *widget, GtkRequisition *requisition)
 {
   GtkXEmacsMenubar *x = GTK_XEMACS_MENUBAR (widget);
   GtkRequisition frame_size;
@@ -579,7 +582,8 @@
 /* This function cannot GC.
    It is only called from menu_item_descriptor_to_widget_value, which
    prohibits GC. */
-static GtkWidget *menu_descriptor_to_widget_1 (Lisp_Object descr)
+static GtkWidget *
+menu_descriptor_to_widget_1 (Lisp_Object descr)
 {
   if (STRINGP (descr))
     {
@@ -880,7 +884,8 @@
     }
 }
 
-static GtkWidget *menu_descriptor_to_widget (Lisp_Object descr)
+static GtkWidget *
+menu_descriptor_to_widget (Lisp_Object descr)
 {
   GtkWidget *rval = NULL;
   int count = begin_gc_forbidden ();
@@ -1220,7 +1225,8 @@
     }
 }
 
-static void popdown_menu_cb (GtkMenuShell *menu, gpointer user_data)
+static void 
+popdown_menu_cb (GtkMenuShell *menu, gpointer user_data)
 {
   popup_up_p--;
 }
@@ -1304,7 +1310,8 @@
   CONSOLE_HAS_METHOD (gtk, popup_menu);
 }
 
-void reinit_vars_of_menubar_gtk (void)
+void
+reinit_vars_of_menubar_gtk (void)
 {
   dockable_menubar = 1;
 #ifdef TEAR_OFF_MENUS