From 4d1d7105a344cc7f07e30eebbeec37f95556931d Mon Sep 17 00:00:00 2001 From: schneefux Date: Sat, 28 Jun 2014 10:21:10 +0000 Subject: keep only favorites --- shell/clock.c | 154 ------------------------------------------------- shell/clock.h | 67 --------------------- shell/maynard.c | 62 +------------------- shell/panel.c | 49 ---------------- shell/panel.h | 2 - shell/style.css | 5 -- shell/vertical-clock.c | 132 ------------------------------------------ shell/vertical-clock.h | 56 ------------------ 8 files changed, 1 insertion(+), 526 deletions(-) delete mode 100644 shell/clock.c delete mode 100644 shell/clock.h delete mode 100644 shell/vertical-clock.c delete mode 100644 shell/vertical-clock.h diff --git a/shell/clock.c b/shell/clock.c deleted file mode 100644 index 1a22089..0000000 --- a/shell/clock.c +++ /dev/null @@ -1,154 +0,0 @@ -/* - * Copyright (C) 2014 Collabora Ltd. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * Author: Jonny Lamb - */ - -#include "config.h" - -#include -#define GNOME_DESKTOP_USE_UNSTABLE_API -#include - -#include "clock.h" - -enum { - VOLUME_CHANGED, - N_SIGNALS -}; -static guint signals[N_SIGNALS] = { 0 }; - -struct MaynardClockPrivate { - GtkWidget *revealer_clock; - - GtkWidget *label; - - GnomeWallClock *wall_clock; -}; - -G_DEFINE_TYPE(MaynardClock, maynard_clock, GTK_TYPE_WINDOW) - -static void -maynard_clock_init (MaynardClock *self) -{ - self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, - MAYNARD_CLOCK_TYPE, - MaynardClockPrivate); -} - -static void -wall_clock_notify_cb (GnomeWallClock *wall_clock, - GParamSpec *pspec, - MaynardClock *self) -{ - GDateTime *datetime; - gchar *str; - - datetime = g_date_time_new_now_local (); - - str = g_date_time_format (datetime, - "%H:%M\n" - "%d/%m/%Y"); - gtk_label_set_markup (GTK_LABEL (self->priv->label), str); - - g_free (str); - g_date_time_unref (datetime); -} - -static void -maynard_clock_constructed (GObject *object) -{ - MaynardClock *self = MAYNARD_CLOCK (object); - GtkWidget *box; - - G_OBJECT_CLASS (maynard_clock_parent_class)->constructed (object); - - self->priv->wall_clock = g_object_new (GNOME_TYPE_WALL_CLOCK, NULL); - g_signal_connect (self->priv->wall_clock, "notify::clock", - G_CALLBACK (wall_clock_notify_cb), self); - - gtk_window_set_title (GTK_WINDOW (self), "maynard"); - gtk_window_set_decorated (GTK_WINDOW (self), FALSE); - gtk_widget_realize (GTK_WIDGET (self)); - - gtk_style_context_add_class ( - gtk_widget_get_style_context (GTK_WIDGET (self)), - "maynard-clock"); - - /* the box for the revealers */ - box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); - gtk_container_add (GTK_CONTAINER (self), box); - - /* clock */ - self->priv->revealer_clock = gtk_revealer_new (); - gtk_revealer_set_transition_type ( - GTK_REVEALER (self->priv->revealer_clock), - GTK_REVEALER_TRANSITION_TYPE_SLIDE_LEFT); - gtk_revealer_set_reveal_child ( - GTK_REVEALER (self->priv->revealer_clock), TRUE); - gtk_box_pack_start (GTK_BOX (box), self->priv->revealer_clock, - TRUE, TRUE, 0); - - self->priv->label = gtk_label_new (""); - gtk_label_set_justify (GTK_LABEL (self->priv->label), GTK_JUSTIFY_CENTER); - gtk_container_add (GTK_CONTAINER (self->priv->revealer_clock), - self->priv->label); - - /* TODO: work out how to fix the padding properly. this is added to - * fix the broken alignment where the clock appears to the right. */ - gtk_box_pack_start (GTK_BOX (box), gtk_revealer_new (), TRUE, TRUE, 0); - - wall_clock_notify_cb (self->priv->wall_clock, NULL, self); -} - -static void -maynard_clock_dispose (GObject *object) -{ - MaynardClock *self = MAYNARD_CLOCK (object); - - g_clear_object (&self->priv->wall_clock); - - G_OBJECT_CLASS (maynard_clock_parent_class)->dispose (object); -} - -static void -maynard_clock_class_init (MaynardClockClass *klass) -{ - GObjectClass *object_class = (GObjectClass *)klass; - - object_class->constructed = maynard_clock_constructed; - object_class->dispose = maynard_clock_dispose; - - g_type_class_add_private (object_class, sizeof (MaynardClockPrivate)); -} - -GtkWidget * -maynard_clock_new (void) -{ - return g_object_new (MAYNARD_CLOCK_TYPE, - NULL); -} - -void -maynard_clock_show_section (MaynardClock *self, - MaynardClockSection section) -{ - gtk_revealer_set_reveal_child ( - GTK_REVEALER (self->priv->revealer_clock), - section == MAYNARD_CLOCK_SECTION_CLOCK); -} diff --git a/shell/clock.h b/shell/clock.h deleted file mode 100644 index 8044a27..0000000 --- a/shell/clock.h +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (C) 2014 Collabora Ltd. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * Author: Jonny Lamb - */ - -#ifndef __MAYNARD_CLOCK_H__ -#define __MAYNARD_CLOCK_H__ - -#include - -#include "panel.h" - -#define MAYNARD_CLOCK_TYPE (maynard_clock_get_type ()) -#define MAYNARD_CLOCK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MAYNARD_CLOCK_TYPE, MaynardClock)) -#define MAYNARD_CLOCK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MAYNARD_CLOCK_TYPE, MaynardClockClass)) -#define MAYNARD_IS_CLOCK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MAYNARD_CLOCK_TYPE)) -#define MAYNARD_IS_CLOCK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MAYNARD_CLOCK_TYPE)) -#define MAYNARD_CLOCK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MAYNARD_CLOCK_TYPE, MaynardClockClass)) - -typedef struct MaynardClock MaynardClock; -typedef struct MaynardClockClass MaynardClockClass; -typedef struct MaynardClockPrivate MaynardClockPrivate; - -struct MaynardClock -{ - GtkWindow parent; - - MaynardClockPrivate *priv; -}; - -struct MaynardClockClass -{ - GtkWindowClass parent_class; -}; - -#define MAYNARD_CLOCK_WIDTH (MAYNARD_PANEL_WIDTH * 2.6) -#define MAYNARD_CLOCK_HEIGHT (MAYNARD_PANEL_WIDTH * 2) - -typedef enum { - MAYNARD_CLOCK_SECTION_CLOCK, - MAYNARD_CLOCK_SECTION_SYSTEM, - MAYNARD_CLOCK_SECTION_VOLUME -} MaynardClockSection; - -GType maynard_clock_get_type (void) G_GNUC_CONST; - -GtkWidget * maynard_clock_new (void); - -void maynard_clock_show_section (MaynardClock *self, MaynardClockSection section); - -#endif /* __MAYNARD_CLOCK_H__ */ diff --git a/shell/maynard.c b/shell/maynard.c index 880487f..a74cd08 100644 --- a/shell/maynard.c +++ b/shell/maynard.c @@ -34,10 +34,8 @@ #include "maynard-resources.h" #include "app-icon.h" -#include "clock.h" #include "favorites.h" #include "panel.h" -#include "vertical-clock.h" extern char **environ; /* defined by libc */ @@ -60,7 +58,6 @@ struct desktop { struct element *background; struct element *panel; - struct element *clock; guint initial_panel_timeout_id; guint hide_panel_idle_id; @@ -82,11 +79,6 @@ connect_enter_leave_signals (gpointer data) g_signal_connect (desktop->panel->window, "leave-notify-event", G_CALLBACK (panel_window_leave_cb), desktop); - g_signal_connect (desktop->clock->window, "enter-notify-event", - G_CALLBACK (panel_window_enter_cb), desktop); - g_signal_connect (desktop->clock->window, "leave-notify-event", - G_CALLBACK (panel_window_leave_cb), desktop); - return G_SOURCE_REMOVE; } @@ -111,12 +103,6 @@ desktop_shell_configure (void *data, shell_helper_move_surface (desktop->helper, desktop->panel->surface, 0, (height - window_height) / 2); - gtk_window_resize (GTK_WINDOW (desktop->clock->window), - MAYNARD_CLOCK_WIDTH, MAYNARD_CLOCK_HEIGHT); - - shell_helper_move_surface (desktop->helper, desktop->clock->surface, - MAYNARD_PANEL_WIDTH, (height - window_height) / 2); - desktop_shell_desktop_ready (desktop->shell); /* TODO: why does the panel signal leave on drawing for @@ -145,29 +131,6 @@ static const struct desktop_shell_listener listener = { desktop_shell_grab_cursor }; -static GtkWidget * -clock_create (struct desktop *desktop) -{ - struct element *clock; - GdkWindow *gdk_window; - - clock = malloc (sizeof *clock); - memset (clock, 0, sizeof *clock); - - clock->window = maynard_clock_new (); - - gdk_window = gtk_widget_get_window (clock->window); - clock->surface = gdk_wayland_window_get_wl_surface (gdk_window); - - gdk_wayland_window_set_use_custom_surface (gdk_window); - shell_helper_add_surface_to_layer (desktop->helper, clock->surface, - desktop->panel->surface); - - gtk_widget_show_all (clock->window); - - desktop->clock = clock; -} - static void button_toggled_cb (struct desktop *desktop, gboolean *visible, @@ -175,9 +138,6 @@ button_toggled_cb (struct desktop *desktop, { *visible = !*visible; *not_visible = FALSE; - - maynard_clock_show_section (MAYNARD_CLOCK (desktop->clock->window), - MAYNARD_CLOCK_SECTION_CLOCK); } static gboolean @@ -200,10 +160,6 @@ panel_window_enter_cb (GtkWidget *widget, shell_helper_slide_surface_back (desktop->helper, desktop->panel->surface); - shell_helper_slide_surface_back (desktop->helper, - desktop->clock->surface); - - maynard_panel_set_expand (MAYNARD_PANEL (desktop->panel->window), TRUE); return FALSE; } @@ -216,21 +172,6 @@ leave_panel_idle_cb (gpointer data) desktop->hide_panel_idle_id = 0; - gtk_window_get_size (GTK_WINDOW (desktop->clock->window), - &width, NULL); - - shell_helper_slide_surface (desktop->helper, - desktop->panel->surface, - MAYNARD_VERTICAL_CLOCK_WIDTH - MAYNARD_PANEL_WIDTH, 0); - shell_helper_slide_surface (desktop->helper, - desktop->clock->surface, - MAYNARD_VERTICAL_CLOCK_WIDTH - MAYNARD_PANEL_WIDTH - width, 0); - - maynard_panel_set_expand (MAYNARD_PANEL (desktop->panel->window), FALSE); - - maynard_clock_show_section (MAYNARD_CLOCK (desktop->clock->window), - MAYNARD_CLOCK_SECTION_CLOCK); - return G_SOURCE_REMOVE; } @@ -506,10 +447,9 @@ main (int argc, css_setup (desktop); background_create (desktop); - /* panel needs to be first so the clock can + /* panel needs to be first so everything else can * be added to its layer */ panel_create (desktop); - clock_create (desktop); gtk_main (); diff --git a/shell/panel.c b/shell/panel.c index b4df188..5f7adfa 100644 --- a/shell/panel.c +++ b/shell/panel.c @@ -25,12 +25,8 @@ #include "app-icon.h" #include "favorites.h" -#include "vertical-clock.h" enum { - APP_MENU_TOGGLED, - SYSTEM_TOGGLED, - VOLUME_TOGGLED, FAVORITE_LAUNCHED, N_SIGNALS }; @@ -38,9 +34,6 @@ static guint signals[N_SIGNALS] = { 0 }; struct MaynardPanelPrivate { gboolean hidden; - - GtkWidget *revealer_buttons; /* for the top buttons */ - GtkWidget *revealer_clock; /* for the vertical clock */ }; G_DEFINE_TYPE(MaynardPanel, maynard_panel, GTK_TYPE_WINDOW) @@ -104,16 +97,6 @@ maynard_panel_constructed (GObject *object) main_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0); gtk_container_add (GTK_CONTAINER (self), main_box); - /* for the top buttons and vertical clock we have a few more - * boxes. the hbox has two cells. in each cell there is a - * GtkRevealer for hiding and showing the content. only one revealer - * is ever visibile at one point and transitions happen at the same - * time so the width stays constant (the animation duration is the - * same). the first revealer contains another box which has the two - * wifi and sound buttons. the second revealer has the vertical - * clock widget. - */ - /* GtkBoxes seem to eat up enter/leave events, so let's use an event * box for the entire thing. */ ebox = gtk_event_box_new (); @@ -123,30 +106,6 @@ maynard_panel_constructed (GObject *object) menu_box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); gtk_container_add (GTK_CONTAINER (ebox), menu_box); - /* revealer for the top buttons */ - self->priv->revealer_buttons = gtk_revealer_new (); - gtk_revealer_set_transition_type (GTK_REVEALER (self->priv->revealer_buttons), - GTK_REVEALER_TRANSITION_TYPE_SLIDE_LEFT); - gtk_revealer_set_reveal_child (GTK_REVEALER (self->priv->revealer_buttons), - TRUE); - gtk_box_pack_start (GTK_BOX (menu_box), - self->priv->revealer_buttons, FALSE, FALSE, 0); - - /* revealer for the vertical clock */ - self->priv->revealer_clock = gtk_revealer_new (); - gtk_revealer_set_transition_type (GTK_REVEALER (self->priv->revealer_clock), - GTK_REVEALER_TRANSITION_TYPE_SLIDE_RIGHT); - gtk_revealer_set_reveal_child (GTK_REVEALER (self->priv->revealer_clock), - FALSE); - gtk_box_pack_start (GTK_BOX (menu_box), - self->priv->revealer_clock, FALSE, FALSE, 0); - - /* vertical clock */ - gtk_container_add (GTK_CONTAINER (self->priv->revealer_clock), - maynard_vertical_clock_new ()); - - /* end of the menu buttons and vertical clock */ - /* favorites */ ebox = gtk_event_box_new (); gtk_box_pack_start (GTK_BOX (main_box), ebox, FALSE, FALSE, 0); @@ -192,14 +151,6 @@ maynard_panel_new (void) NULL); } -void -maynard_panel_set_expand (MaynardPanel *self, - gboolean expand) -{ - gtk_revealer_set_reveal_child (GTK_REVEALER (self->priv->revealer_buttons), expand); - gtk_revealer_set_reveal_child (GTK_REVEALER (self->priv->revealer_clock), !expand); -} - static void set_icon (GtkWidget *button, const gchar *icon_name) diff --git a/shell/panel.h b/shell/panel.h index c0b70f2..434dc18 100644 --- a/shell/panel.h +++ b/shell/panel.h @@ -58,6 +58,4 @@ GType maynard_panel_get_type (void) G_GNUC_CONST; GtkWidget * maynard_panel_new (void); -void maynard_panel_set_expand (MaynardPanel *self, gboolean expand); - #endif /* __MAYNARD_PANEL_H__ */ diff --git a/shell/style.css b/shell/style.css index c1696af..9d0d694 100644 --- a/shell/style.css +++ b/shell/style.css @@ -32,8 +32,3 @@ background-color: alpha(black, 0.2); color: white; } - -.maynard-clock { - background-color: #929292; - color: white; -} diff --git a/shell/vertical-clock.c b/shell/vertical-clock.c deleted file mode 100644 index ed9f9f0..0000000 --- a/shell/vertical-clock.c +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Copyright (C) 2014 Collabora Ltd. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * Author: Jonny Lamb - */ - -#include "config.h" - -#include "vertical-clock.h" - -#define GNOME_DESKTOP_USE_UNSTABLE_API -#include - -#include "panel.h" - -struct MaynardVerticalClockPrivate { - GtkWidget *label; - - GnomeWallClock *wall_clock; -}; - -G_DEFINE_TYPE(MaynardVerticalClock, maynard_vertical_clock, GTK_TYPE_BOX) - -/* this widget takes up the entire width of the panel and displays - * padding for the first (panel width - vertical clock width) pixels, - * then shows the vertical clock itself. the idea is to put this into - * a GtkRevealer and only show it when appropriate. */ - -static void -maynard_vertical_clock_init (MaynardVerticalClock *self) -{ - self->priv = G_TYPE_INSTANCE_GET_PRIVATE (self, - MAYNARD_VERTICAL_CLOCK_TYPE, - MaynardVerticalClockPrivate); -} - -static void -wall_clock_notify_cb (GnomeWallClock *wall_clock, - GParamSpec *pspec, - MaynardVerticalClock *self) -{ - GDateTime *datetime; - gchar *str; - - datetime = g_date_time_new_now_local (); - - str = g_date_time_format (datetime, - "%H\n" - ":\n" - "%M"); - gtk_label_set_markup (GTK_LABEL (self->priv->label), str); - - g_free (str); - g_date_time_unref (datetime); -} - -static void -maynard_vertical_clock_constructed (GObject *object) -{ - MaynardVerticalClock *self = MAYNARD_VERTICAL_CLOCK (object); - GtkWidget *padding; - gint width; - - G_OBJECT_CLASS (maynard_vertical_clock_parent_class)->constructed (object); - - self->priv->wall_clock = g_object_new (GNOME_TYPE_WALL_CLOCK, NULL); - g_signal_connect (self->priv->wall_clock, "notify::clock", - G_CALLBACK (wall_clock_notify_cb), self); - - gtk_orientable_set_orientation (GTK_ORIENTABLE (self), GTK_ORIENTATION_HORIZONTAL); - - /* a label just to pad things out to the correct width */ - width = MAYNARD_PANEL_WIDTH - MAYNARD_VERTICAL_CLOCK_WIDTH; - - padding = gtk_label_new (""); - gtk_style_context_add_class (gtk_widget_get_style_context (padding), - "maynard-clock"); - gtk_widget_set_size_request (padding, width, -1); - gtk_box_pack_start (GTK_BOX (self), padding, FALSE, FALSE, 0); - - /* the actual clock label */ - self->priv->label = gtk_label_new (""); - gtk_style_context_add_class (gtk_widget_get_style_context (self->priv->label), - "maynard-clock"); - gtk_label_set_justify (GTK_LABEL (self->priv->label), GTK_JUSTIFY_CENTER); - gtk_widget_set_size_request (self->priv->label, - MAYNARD_VERTICAL_CLOCK_WIDTH, -1); - gtk_box_pack_start (GTK_BOX (self), self->priv->label, FALSE, FALSE, 0); - - wall_clock_notify_cb (self->priv->wall_clock, NULL, self); -} - -static void -maynard_vertical_clock_dispose (GObject *object) -{ - MaynardVerticalClock *self = MAYNARD_VERTICAL_CLOCK (object); - - G_OBJECT_CLASS (maynard_vertical_clock_parent_class)->dispose (object); -} - -static void -maynard_vertical_clock_class_init (MaynardVerticalClockClass *klass) -{ - GObjectClass *object_class = (GObjectClass *)klass; - - object_class->constructed = maynard_vertical_clock_constructed; - object_class->dispose = maynard_vertical_clock_dispose; - - g_type_class_add_private (object_class, sizeof (MaynardVerticalClockPrivate)); -} - -GtkWidget * -maynard_vertical_clock_new (void) -{ - return g_object_new (MAYNARD_VERTICAL_CLOCK_TYPE, - NULL); -} diff --git a/shell/vertical-clock.h b/shell/vertical-clock.h deleted file mode 100644 index ca4d7e3..0000000 --- a/shell/vertical-clock.h +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (C) 2014 Collabora Ltd. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this program; if not, write to the - * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, - * Boston, MA 02110-1301 USA - * - * Author: Jonny Lamb - */ - -#ifndef __MAYNARD_VERTICAL_CLOCK_H__ -#define __MAYNARD_VERTICAL_CLOCK_H__ - -#include - -#define MAYNARD_VERTICAL_CLOCK_TYPE (maynard_vertical_clock_get_type ()) -#define MAYNARD_VERTICAL_CLOCK(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MAYNARD_VERTICAL_CLOCK_TYPE, MaynardVerticalClock)) -#define MAYNARD_VERTICAL_CLOCK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MAYNARD_VERTICAL_CLOCK_TYPE, MaynardVerticalClockClass)) -#define MAYNARD_IS_VERTICAL_CLOCK(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MAYNARD_VERTICAL_CLOCK_TYPE)) -#define MAYNARD_IS_VERTICAL_CLOCK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MAYNARD_VERTICAL_CLOCK_TYPE)) -#define MAYNARD_VERTICAL_CLOCK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MAYNARD_VERTICAL_CLOCK_TYPE, MaynardVerticalClockClass)) - -typedef struct MaynardVerticalClock MaynardVerticalClock; -typedef struct MaynardVerticalClockClass MaynardVerticalClockClass; -typedef struct MaynardVerticalClockPrivate MaynardVerticalClockPrivate; - -struct MaynardVerticalClock -{ - GtkBox parent; - - MaynardVerticalClockPrivate *priv; -}; - -struct MaynardVerticalClockClass -{ - GtkBoxClass parent_class; -}; - -#define MAYNARD_VERTICAL_CLOCK_WIDTH 25 - -GType maynard_vertical_clock_get_type (void) G_GNUC_CONST; - -GtkWidget * maynard_vertical_clock_new (void); - -#endif /* __MAYNARD_VERTICAL_CLOCK_H__ */ -- cgit v1.3.1