Code

Disable the page selector when there's only one page
[inkscape.git] / src / widgets / button.h
index a29ffe76a3da4047336f0ce41eb8a86946c34d81..f14af94d14fca46e5d0b51b8e526668ccd6c67a7 100644 (file)
 #include <gtk/gtktogglebutton.h>
 #include <gtk/gtktooltips.h>
 
-#include <helper/action.h>
-
-#include <glib.h>
-
+#include "helper/action.h"
+#include "icon-size.h"
 
 
 typedef enum {
@@ -38,7 +36,7 @@ struct SPBChoiceData {
 struct SPButton {
        GtkToggleButton widget;
        SPButtonType type;
-       GtkIconSize lsize;
+       Inkscape::IconSize lsize;
        unsigned int psize;
        SPAction *action;
        SPAction *doubleclick_action;
@@ -53,11 +51,11 @@ struct SPButtonClass {
 
 GType sp_button_get_type (void);
 
-GtkWidget *sp_button_new (GtkIconSize size, SPButtonType type, SPAction *action, SPAction *doubleclick_action, GtkTooltips *tooltips);
+GtkWidget *sp_button_new (Inkscape::IconSize size, SPButtonType type, SPAction *action, SPAction *doubleclick_action, GtkTooltips *tooltips);
 
 void sp_button_toggle_set_down (SPButton *button, gboolean down);
 
-GtkWidget *sp_button_new_from_data (GtkIconSize size,
+GtkWidget *sp_button_new_from_data (Inkscape::IconSize size,
                                    SPButtonType type,
                                    Inkscape::UI::View::View *view,
                                    const gchar *name,