Commit e5507fd1 authored by Mark McLoughlin's avatar Mark McLoughlin Committed by Mark McLoughlin

kill the foobar clock.

2002-03-28  Mark McLoughlin  <mark@skynet.ie>

        * foobar-widget.[ch]: kill the foobar clock.

        * panel-per-panel-config.schemas: add the clock applet to
        the default menu panel setup.

        * gnome-run.c: (run_dialog_response):
        * menu.c: (create_new_panel):
        * panel.c: (panel_load_panels_from_gconf): update for foobar change.
parent f7557b6e
2002-03-28 Mark McLoughlin <mark@skynet.ie>
* foobar-widget.[ch]: kill the foobar clock.
* panel-per-panel-config.schemas: add the clock applet to
the default menu panel setup.
* gnome-run.c: (run_dialog_response):
* menu.c: (create_new_panel):
* panel.c: (panel_load_panels_from_gconf): update for foobar change.
2002-03-27 Mark McLoughlin <mark@skynet.ie>
* gnome-run.c: (fill_list), (create_simple_contents): make the idle
......
This diff is collapsed.
......@@ -31,9 +31,6 @@ struct _FoobarWidget
GtkWidget *ebox;
GtkWidget *hbox;
GtkWidget *panel;
GtkWidget *clock_ebox;
GtkWidget *clock_label;
guint clock_timeout;
GtkWidget *programs;
......@@ -67,17 +64,11 @@ GtkWidget * foobar_widget_new (const char *panel_id, int screen);
void foobar_widget_update_winhints (FoobarWidget *foo);
void foobar_widget_redo_window (FoobarWidget *foo);
void foobar_widget_set_clock_format (FoobarWidget *foo,
const char *format);
gboolean foobar_widget_exists (int screen);
gint foobar_widget_get_height (int screen);
void foobar_widget_force_menu_remake (void);
void foobar_widget_global_set_clock_format (const char *format);
G_END_DECLS
#endif
......@@ -294,10 +294,7 @@ run_dialog_response (GtkWidget *w, int response, gpointer data)
goto return_and_close;
/* evil eggies, do not translate! */
if (strcmp (s, "time shall be unixey") == 0) {
foobar_widget_global_set_clock_format ("%s");
goto return_and_close;
} else if (strcmp (s, "you shall bring us a shrubbery") == 0) {
if (strcmp (s, "you shall bring us a shrubbery") == 0) {
panel_info_dialog ("ni_ni_ni_ni",
"NI! NI! NI! NI! NI! NI!");
goto return_and_close;
......
......@@ -2567,8 +2567,6 @@ create_new_panel (GtkWidget *w, gpointer data)
panel = foobar_widget_new (NULL, screen);
panel_id = PANEL_WIDGET (FOOBAR_WIDGET (panel)->panel)->unique_id;
foobar_widget_set_clock_format (FOOBAR_WIDGET (panel), _("%I: %M: %S: %p"));
panel_setup (panel);
gtk_widget_show (panel);
......
This diff is collapsed.
......@@ -2395,18 +2395,8 @@ panel_load_panels_from_gconf (void)
&back_color);
}
break;
case FOOBAR_PANEL: {
char *timestring;
case FOOBAR_PANEL:
panel = foobar_widget_new (panel_id, screen);
timestring = panel_get_string (profile, panel_id,
"clock_format", _("%I:%M:%S %p"));
if (timestring) {
foobar_widget_set_clock_format (FOOBAR_WIDGET (panel), timestring);
g_free (timestring);
}
}
break;
default:
panel = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment