antiright-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Antiright-devel] antiright/gtkshell options.c


From: Jeffrey Bedard
Subject: [Antiright-devel] antiright/gtkshell options.c
Date: Wed, 12 Dec 2007 00:19:26 +0000

CVSROOT:        /sources/antiright
Module name:    antiright
Changes by:     Jeffrey Bedard <jefbed> 07/12/12 00:19:26

Modified files:
        gtkshell       : options.c 

Log message:
        Define more options--finished defining add options,
        now defining option options.  

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/antiright/gtkshell/options.c?cvsroot=antiright&r1=1.35&r2=1.36

Patches:
Index: options.c
===================================================================
RCS file: /sources/antiright/antiright/gtkshell/options.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -b -r1.35 -r1.36
--- options.c   11 Dec 2007 20:31:32 -0000      1.35
+++ options.c   12 Dec 2007 00:19:26 -0000      1.36
@@ -280,6 +280,148 @@
        gsh_add_embedded(gsh, (char *)argv[*counter]);
 }
 
+
+
+
+static void
+option_app_mode_cb(GSH * gsh, gint * counter, const gchar ** argv)
+{
+       GSH_SET(GSH_APP_MODE);
+}
+
+static void
+option_check_commands_cb(GSH * gsh, gint * counter, const gchar ** argv)
+{
+       GSH_SET(GSH_CHECK_COMMANDS);
+}
+
+static void
+option_color_cb(GSH * gsh, gint * counter, const gchar ** argv)
+{
+       GSH_COUNT(argc, counter);
+       gsh->editor.bgcolor=(gchar *)argv[*counter];
+       GSH_COUNT(argc, counter);
+       gsh->editor.fgcolor=(gchar *)argv[*counter];
+}
+
+static void
+option_no_dummy_cb(GSH * gsh, gint * counter, const gchar ** argv)
+{
+       GSH_SET(GSH_GUIDL_NO_DUMMY);
+}
+
+static void
+option_echoes_cb(GSH * gsh, gint * counter, const gchar ** argv)
+{
+       GSH_SET(GSH_PROMPT_ECHOES);
+}
+
+static void
+option_exits_cb(GSH * gsh, gint * counter, const gchar ** argv)
+{
+       GSH_SET(GSH_CBEXIT);
+}
+
+static void
+option_no_base_frame_cb(GSH * gsh, gint * counter, const gchar ** argv)
+{
+       GSH_SET(GSH_NO_BASE_FRAME);
+}
+
+static void
+option_framed_labels_cb(GSH * gsh, gint * counter, const gchar ** argv)
+{
+       GSH_SET(GSH_FRAMED_LABELS);
+}
+
+static void
+option_geometry_cb(GSH * gsh, gint * counter, const gchar ** argv)
+{
+       ARIFP(gsh->geometry)
+               g_free(gsh->geometry);
+       GSH_COUNT(argc, counter);
+       gsh->geometry=g_strdup(argv[*counter]);
+}
+
+static void
+option_horiz_clock_cb(GSH * gsh, gint * counter, const gchar ** argv)
+{
+       GSH_SET(GSH_HORIZ_CLOCK);
+}
+
+static void
+option_horiz_labels_cb(GSH * gsh, gint * counter, const gchar ** argv)
+{
+       GSH_SET(GSH_HORIZONTAL_LABELS);
+}
+
+static void
+option_icon_size_cb(GSH * gsh, gint * counter, const gchar ** argv)
+{
+       GSH_COUNT(argc, counter);
+       /* FIXME */
+}
+
+static void
+option_expand_cb(GSH * gsh, gint * counter, const gchar ** argv)
+{
+       GSH_SET(GSH_NO_EXPAND);
+}
+
+static void
+option_no_expand_cb(GSH * gsh, gint * counter, const gchar ** argv)
+{
+       GSH_UNSET(GSH_NO_EXPAND);
+}
+
+static void
+option_no_decorations_cb(GSH * gsh, gint * counter, const gchar ** argv)
+{
+       GtkWindow * window;
+
+       gsh->widgets.window=gtk_window_new(GTK_WINDOW_POPUP);
+       window=GTK_WINDOW(gsh->widgets.window);
+       gtk_window_set_type_hint(window, GDK_WINDOW_TYPE_HINT_DESKTOP);
+       gtk_window_set_decorated(window, FALSE);
+       gtk_window_set_skip_taskbar_hint(window, TRUE);
+       gtk_window_set_accept_focus(window, TRUE);
+       gtk_window_stick(window);
+}
+
+static void
+option_pane_next_cb(GSH * gsh, gint * counter, const gchar ** argv)
+{
+       GSH_SET(GSH_PANE_NEXT);
+}
+
+static void
+option_rows_cb(GSH * gsh, gint * counter, const gchar ** argv)
+{
+       GSH_COUNT(argc, counter);
+       gsh->rows->total=(unsigned int)atoi(argv[*counter]);
+}
+
+static void
+option_scroll_cb(GSH * gsh, gint * counter, const gchar ** argv)
+{
+       GSH_SET(GSH_SCROLL);
+}
+
+static void
+option_title_cb(GSH * gsh, gint * counter, const gchar ** argv)
+{
+       GSH_COUNT(argc, counter);
+       gtk_window_set_title(GTK_WINDOW(gsh->widgets.window),
+               argv[*counter]);
+}
+
+static void
+option_update_cb(GSH * gsh, gint * counter, const gchar ** argv)
+{
+       GSH_COUNT(argc, counter);
+       gsh->update->period=atoi(argv[*counter]);
+}
+
 ARTupleVector *
 gsh_define_command_line_options(void)
 {
@@ -312,6 +454,27 @@
 
        ARTDEF("-aul", add_updating_label_cb);
 
+       ARTDEF("-oa", option_app_mode_cb);
+       ARTDEF("-oC", option_check_commands_cb);
+       ARTDEF("-oc", option_color_cb);
+       ARTDEF("-oD", option_no_dummy_cb);
+       ARTDEF("-oE", option_echoes_cb);
+       ARTDEF("-oe", option_exits_cb);
+       ARTDEF("-oF", option_no_base_frame_cb);
+       ARTDEF("-of", option_framed_labels_cb);
+       ARTDEF("-og", option_geometry_cb);
+       ARTDEF("-oH", option_horiz_clock_cb);
+       ARTDEF("-oh", option_horiz_labels_cb);
+       ARTDEF("-oi", option_icon_size_cb);
+       ARTDEF("-ol", option_no_expand_cb);
+       ARTDEF("-oL", option_expand_cb);
+       ARTDEF("-on", option_no_decorations_cb);
+       ARTDEF("-op", option_pane_next_cb);
+       ARTDEF("-or", option_rows_cb);
+       ARTDEF("-os", option_scroll_cb);
+       ARTDEF("-oT", option_title_cb);
+       ARTDEF("-ou", option_update_cb);
+
        ARTDEF("-t", test_cb);
        
        




reply via email to

[Prev in Thread] Current Thread [Next in Thread]