[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Antiright-devel] antiright/src/arshell arshell.h menubar.c
From: |
Jeffrey Bedard |
Subject: |
[Antiright-devel] antiright/src/arshell arshell.h menubar.c |
Date: |
Mon, 27 Dec 2004 03:06:05 -0500 |
CVSROOT: /cvsroot/antiright
Module name: antiright
Branch:
Changes by: Jeffrey Bedard <address@hidden> 04/12/27 07:53:41
Modified files:
src/arshell : arshell.h menubar.c
Log message:
Use BEGINNING alignment for menu items.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/antiright/antiright/src/arshell/arshell.h.diff?tr1=1.15&tr2=1.16&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/antiright/antiright/src/arshell/menubar.c.diff?tr1=1.8&tr2=1.9&r1=text&r2=text
Patches:
Index: antiright/src/arshell/arshell.h
diff -u antiright/src/arshell/arshell.h:1.15
antiright/src/arshell/arshell.h:1.16
--- antiright/src/arshell/arshell.h:1.15 Wed Dec 22 02:46:55 2004
+++ antiright/src/arshell/arshell.h Mon Dec 27 07:53:41 2004
@@ -37,6 +37,7 @@
#include "interface_file.h"
#include "pixmap.h"
#include "clockload.h"
+#include "appendage.h"
struct arshell_flags_struct
{
Index: antiright/src/arshell/menubar.c
diff -u antiright/src/arshell/menubar.c:1.8 antiright/src/arshell/menubar.c:1.9
--- antiright/src/arshell/menubar.c:1.8 Sun Sep 5 01:41:54 2004
+++ antiright/src/arshell/menubar.c Mon Dec 27 07:53:41 2004
@@ -49,12 +49,21 @@
arshell.flags.use_menubar=True;
}
void
+arshell_align_left(Widget widget)
+{
+ ARCLARG;
+ antiright_set(XmNalignment, XmALIGNMENT_BEGINNING);
+ antiright_set_values(widget);
+}
+void
arshell_add_button_to_file_menu(int *counter_int, char **argv)
{
+ Widget button;
(*counter_int)++;
- arshell_optioned_button(arshell.gui.menubar.file_widget,
+ button=arshell_optioned_button(arshell.gui.menubar.file_widget,
arshell_system_cb,
argv[(*counter_int)]);
+ arshell_align_left(button);
}
void
arshell_add_button_to_edit_menu(int *counter_int, char **argv)
@@ -62,32 +71,38 @@
(*counter_int)++;
if((arshell.gui.widgets.work != NULL))
{
+ Widget button;
if(arshell.gui.menubar.edit_widget==NULL)
{
antiright_edit_menu(arshell.gui.menubar.menubar_widget,
arshell.gui.widgets.work);
}
- arshell_optioned_button(arshell.gui.menubar.file_widget,
+ button=arshell_optioned_button(arshell.gui.menubar.file_widget,
arshell_system_cb,
argv[(*counter_int)]);
+ arshell_align_left(button);
}
}
void
arshell_add_button_to_view_menu(int* counter_int, char** argv)
{
+ Widget button;
(*counter_int)++;
- arshell_optioned_button(arshell.gui.menubar.file_widget,
+ button=arshell_optioned_button(arshell.gui.menubar.file_widget,
arshell_system_cb,
argv[(*counter_int)]);
+ arshell_align_left(button);
}
void
arshell_add_button_to_help_menu(int *counter_int, char **argv)
{
+ Widget button;
(*counter_int)++;
- arshell_optioned_button(arshell.gui.menubar.file_widget,
+ button=arshell_optioned_button(arshell.gui.menubar.file_widget,
arshell_system_cb,
argv[(*counter_int)]);
+ arshell_align_left(button);
}
void
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Antiright-devel] antiright/src/arshell arshell.h menubar.c,
Jeffrey Bedard <=