/*
- * (SLIK) SimpLIstic sKin functions
- * (C) 2004 John Ellis
- * Copyright (C) 2008 - 2010 The Geeqie Team
+ * Copyright (C) 2004 John Ellis
+ * Copyright (C) 2008 - 2016 The Geeqie Team
*
* Author: John Ellis
*
- * This software is released under the GNU General Public License (GNU GPL).
- * Please read the included file COPYING for more information.
- * This software comes with no warranty of any kind, use at your own risk!
+ * 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 Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-
#ifndef UI_MISC_H
#define UI_MISC_H
/* HIG 2.0 chapter 8 defines: */
-/* space between elements within control (ex: icon and it's text) */
+/**
+ * @def PREF_PAD_GAP
+ * space between elements within control (ex: icon and it's text)
+ */
#define PREF_PAD_GAP 6
-/* space between label and control(s) */
+
+/**
+ * @def PREF_PAD_SPACE
+ * space between label and control(s)
+ */
#define PREF_PAD_SPACE 12
-/* space between window border and controls */
+
+/**
+ * @def PREF_PAD_BORDER
+ * space between window border and controls
+ */
#define PREF_PAD_BORDER 12
-/* indent for group members */
+
+/**
+ * @def PREF_PAD_INDENT
+ * indent for group members
+ */
#define PREF_PAD_INDENT 12
-/* vertical space between groups */
+
+/**
+ * @def PREF_PAD_GROUP
+ * vertical space between groups
+ */
#define PREF_PAD_GROUP 18
/* HIG 2.0 chapter 3.13 defines: */
-/* gap between buttons in a dialog */
+/**
+ * @def PREF_PAD_BUTTON_GAP
+ * gap between buttons in a dialog
+ */
#define PREF_PAD_BUTTON_GAP 6
-/* space between buttons in a dialog and it's contents */
+
+/**
+ * @def PREF_PAD_BUTTON_SPACE
+ * space between buttons in a dialog and it's contents
+ */
#define PREF_PAD_BUTTON_SPACE 24
/* and these are not in the GNOME HIG */
-/* gap between similar toolbar items (buttons) */
+/**
+ * @def PREF_PAD_TOOLBAR_GAP
+ * gap between similar toolbar items (buttons)
+ */
#define PREF_PAD_TOOLBAR_GAP 0
-/* HIG 2.0 states 6 pixels between icons and text,
+/**
+ * @def PREF_PAD_BUTTON_ICON_GAP
+ * HIG 2.0 states 6 pixels between icons and text,
* but GTK's stock buttons ignore this (hard coded to 2), we do it too for consistency
*/
#define PREF_PAD_BUTTON_ICON_GAP 2
GtkWidget *pref_table_new(GtkWidget *parent_box, gint columns, gint rows,
- gboolean homegeneous, gboolean fill);
+ gboolean homogeneous, gboolean fill);
GtkWidget *pref_table_box(GtkWidget *table, gint column, gint row,
GtkOrientation orientation, const gchar *text);
GCallback func, gpointer data);
gchar *text_widget_text_pull(GtkWidget *text_widget);
+gchar *text_widget_text_pull_selected(GtkWidget *text_widget);
+gboolean defined_mouse_buttons(GtkWidget *widget, GdkEventButton *event, gpointer data);
#endif
/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */