summaryrefslogtreecommitdiff
path: root/font-viewer/gd-main-toolbar.h
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-01-08 18:34:05 +0100
committerraveit65 <[email protected]>2017-02-17 12:28:22 +0100
commit80c5618cfdc28be14bbfea6d69a24061acfc1180 (patch)
treeb78ff9559751c3fc5019b910bb5819b855164d7d /font-viewer/gd-main-toolbar.h
parent2b9497eb135e91d101e330b6407ebcff3f5a3798 (diff)
downloadmate-control-center-80c5618cfdc28be14bbfea6d69a24061acfc1180.tar.bz2
mate-control-center-80c5618cfdc28be14bbfea6d69a24061acfc1180.tar.xz
Fontviewer: main-toolbar sync with Documents
taken from: https://git.gnome.org/browse/gnome-font-viewer/commit/?id=c859694 https://git.gnome.org/browse/gnome-font-viewer/commit/?id=e0d2a23 Fontviewer: gd-toolbar sync to latest libgd suitable for mate
Diffstat (limited to 'font-viewer/gd-main-toolbar.h')
-rw-r--r--font-viewer/gd-main-toolbar.h48
1 files changed, 32 insertions, 16 deletions
diff --git a/font-viewer/gd-main-toolbar.h b/font-viewer/gd-main-toolbar.h
index 56534115..4fa7b532 100644
--- a/font-viewer/gd-main-toolbar.h
+++ b/font-viewer/gd-main-toolbar.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2011 Red Hat, Inc.
+ * Copyright (c) 2011, 2012 Red Hat, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
@@ -54,13 +54,6 @@ typedef struct _GdMainToolbar GdMainToolbar;
typedef struct _GdMainToolbarClass GdMainToolbarClass;
typedef struct _GdMainToolbarPrivate GdMainToolbarPrivate;
-typedef enum {
- GD_MAIN_TOOLBAR_MODE_INVALID,
- GD_MAIN_TOOLBAR_MODE_OVERVIEW,
- GD_MAIN_TOOLBAR_MODE_SELECTION,
- GD_MAIN_TOOLBAR_MODE_PREVIEW
-} GdMainToolbarMode;
-
struct _GdMainToolbar
{
GtkToolbar parent;
@@ -77,19 +70,42 @@ GType gd_main_toolbar_get_type (void) G_GNUC_CONST;
GtkWidget *gd_main_toolbar_new (void);
-void gd_main_toolbar_set_mode (GdMainToolbar *self,
- GdMainToolbarMode mode);
-GdMainToolbarMode gd_main_toolbar_get_mode (GdMainToolbar *self);
-void gd_main_toolbar_set_labels (GdMainToolbar *self,
- const gchar *primary,
- const gchar *detail);
-void gd_main_toolbar_set_back_visible (GdMainToolbar *self,
- gboolean visible);
+void gd_main_toolbar_set_labels (GdMainToolbar *self,
+ const gchar *primary,
+ const gchar *detail);
+
+void gd_main_toolbar_set_labels_menu (GdMainToolbar *self,
+ GMenuModel *menu);
+
+GtkWidget * gd_main_toolbar_add_mode (GdMainToolbar *self,
+ const gchar *label);
+
+void gd_main_toolbar_clear (GdMainToolbar *self);
+
GtkWidget * gd_main_toolbar_add_button (GdMainToolbar *self,
const gchar *icon_name,
const gchar *label,
gboolean pack_start);
+GtkWidget * gd_main_toolbar_add_toggle (GdMainToolbar *self,
+ const gchar *icon_name,
+ const gchar *label,
+ gboolean pack_start);
+
+GtkWidget * gd_main_toolbar_add_menu (GdMainToolbar *self,
+ const gchar *icon_name,
+ const gchar *label,
+ gboolean pack_start);
+
+void gd_main_toolbar_add_widget (GdMainToolbar *self,
+ GtkWidget *widget,
+ gboolean pack_start);
+
+gboolean gd_main_toolbar_get_show_modes (GdMainToolbar *self);
+
+void gd_main_toolbar_set_show_modes (GdMainToolbar *self,
+ gboolean show_modes);
+
G_END_DECLS
#endif /* __GD_MAIN_TOOLBAR_H__ */