2007-12-16 22:20:24 +00:00
|
|
|
/*
|
2008-03-29 21:38:59 +00:00
|
|
|
Copyright (C) 2007-2008 Christian Dywan <christian@twotoasts.de>
|
2007-12-16 22:20:24 +00:00
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Lesser General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 2.1 of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
See the file COPYING for the full license text.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __SOKOKE_H__
|
|
|
|
#define __SOKOKE_H__ 1
|
|
|
|
|
2008-08-05 03:03:05 +00:00
|
|
|
#include <katze/katze.h>
|
2008-06-14 00:23:33 +00:00
|
|
|
|
2007-12-16 22:20:24 +00:00
|
|
|
#include <gtk/gtk.h>
|
|
|
|
|
2008-06-14 00:23:33 +00:00
|
|
|
/* Many themes need this hack for small toolbars to work */
|
2007-12-16 22:20:24 +00:00
|
|
|
#define GTK_ICON_SIZE_SMALL_TOOLBAR GTK_ICON_SIZE_BUTTON
|
|
|
|
|
2008-07-16 20:32:37 +00:00
|
|
|
gboolean
|
|
|
|
sokoke_spawn_program (const gchar* command,
|
|
|
|
const gchar* argument);
|
|
|
|
|
2008-04-20 19:44:56 +00:00
|
|
|
gchar*
|
2008-07-13 19:49:57 +00:00
|
|
|
sokoke_magic_uri (const gchar* uri,
|
2008-08-25 23:19:38 +00:00
|
|
|
KatzeArray* search_engines);
|
2008-04-20 19:44:56 +00:00
|
|
|
|
2008-03-29 21:38:59 +00:00
|
|
|
typedef enum {
|
|
|
|
SOKOKE_MENU_POSITION_CURSOR = 0,
|
|
|
|
SOKOKE_MENU_POSITION_LEFT,
|
|
|
|
SOKOKE_MENU_POSITION_RIGHT
|
|
|
|
} SokokeMenuPos;
|
|
|
|
|
2007-12-16 22:20:24 +00:00
|
|
|
void
|
2008-07-13 19:49:57 +00:00
|
|
|
sokoke_combo_box_add_strings (GtkComboBox* combobox,
|
|
|
|
const gchar* label_first,
|
|
|
|
...);
|
2007-12-16 22:20:24 +00:00
|
|
|
|
|
|
|
void
|
2008-07-13 19:49:57 +00:00
|
|
|
sokoke_widget_set_visible (GtkWidget* widget,
|
|
|
|
gboolean visible);
|
2007-12-16 22:20:24 +00:00
|
|
|
|
|
|
|
void
|
2008-07-13 19:49:57 +00:00
|
|
|
sokoke_container_show_children (GtkContainer* container);
|
2007-12-16 22:20:24 +00:00
|
|
|
|
|
|
|
void
|
2008-07-13 19:49:57 +00:00
|
|
|
sokoke_widget_popup (GtkWidget* widget,
|
|
|
|
GtkMenu* menu,
|
|
|
|
GdkEventButton* event,
|
|
|
|
SokokeMenuPos pos);
|
2007-12-16 22:20:24 +00:00
|
|
|
|
2008-06-01 15:39:57 +00:00
|
|
|
GtkWidget*
|
2008-07-13 19:49:57 +00:00
|
|
|
sokoke_xfce_header_new (const gchar* icon,
|
|
|
|
const gchar* title);
|
2007-12-16 22:20:24 +00:00
|
|
|
|
2008-06-01 15:39:57 +00:00
|
|
|
GtkWidget*
|
2008-07-13 19:49:57 +00:00
|
|
|
sokoke_superuser_warning_new (void);
|
2007-12-16 22:20:24 +00:00
|
|
|
|
|
|
|
GtkWidget*
|
2008-07-13 19:49:57 +00:00
|
|
|
sokoke_hig_frame_new (const gchar* title);
|
2007-12-16 22:20:24 +00:00
|
|
|
|
|
|
|
void
|
2008-07-13 19:49:57 +00:00
|
|
|
sokoke_widget_set_pango_font_style (GtkWidget* widget,
|
|
|
|
PangoStyle style);
|
2007-12-16 22:20:24 +00:00
|
|
|
|
|
|
|
void
|
2008-07-13 19:49:57 +00:00
|
|
|
sokoke_entry_set_default_text (GtkEntry* entry,
|
|
|
|
const gchar* default_text);
|
2007-12-16 22:20:24 +00:00
|
|
|
|
|
|
|
gchar*
|
2008-07-13 19:49:57 +00:00
|
|
|
sokoke_key_file_get_string_default (GKeyFile* key_file,
|
|
|
|
const gchar* group,
|
|
|
|
const gchar* key,
|
|
|
|
const gchar* default_value,
|
|
|
|
GError** error);
|
2007-12-16 22:20:24 +00:00
|
|
|
|
|
|
|
gint
|
2008-07-13 19:49:57 +00:00
|
|
|
sokoke_key_file_get_integer_default (GKeyFile* key_file,
|
|
|
|
const gchar* group,
|
|
|
|
const gchar* key,
|
|
|
|
const gint default_value,
|
|
|
|
GError** error);
|
2007-12-16 22:20:24 +00:00
|
|
|
|
2008-06-01 09:26:10 +00:00
|
|
|
gdouble
|
2008-07-13 19:49:57 +00:00
|
|
|
sokoke_key_file_get_double_default (GKeyFile* key_file,
|
|
|
|
const gchar* group,
|
|
|
|
const gchar* key,
|
|
|
|
gdouble default_value,
|
|
|
|
GError** error);
|
2008-06-01 09:26:10 +00:00
|
|
|
|
2008-04-13 19:51:43 +00:00
|
|
|
gboolean
|
2008-07-13 19:49:57 +00:00
|
|
|
sokoke_key_file_get_boolean_default (GKeyFile* key_file,
|
|
|
|
const gchar* group,
|
|
|
|
const gchar* key,
|
|
|
|
gboolean default_value,
|
|
|
|
GError** error);
|
2008-04-13 19:51:43 +00:00
|
|
|
|
2007-12-16 22:20:24 +00:00
|
|
|
gboolean
|
2008-07-13 19:49:57 +00:00
|
|
|
sokoke_key_file_save_to_file (GKeyFile* key_file,
|
|
|
|
const gchar* filename,
|
|
|
|
GError** error);
|
2007-12-16 22:20:24 +00:00
|
|
|
|
|
|
|
void
|
2008-07-13 19:49:57 +00:00
|
|
|
sokoke_widget_get_text_size (GtkWidget* widget,
|
|
|
|
const gchar* text,
|
|
|
|
gint* width,
|
|
|
|
gint* height);
|
2007-12-16 22:20:24 +00:00
|
|
|
|
2008-08-10 17:54:22 +00:00
|
|
|
GtkWidget*
|
|
|
|
sokoke_action_create_popup_menu_item (GtkAction* action);
|
|
|
|
|
2008-09-07 01:39:25 +00:00
|
|
|
GtkWidget*
|
|
|
|
sokoke_image_menu_item_new_ellipsized (const gchar* label);
|
|
|
|
|
2008-08-29 01:20:31 +00:00
|
|
|
gboolean
|
|
|
|
sokoke_tree_view_get_selected_iter (GtkTreeView* tree_view,
|
|
|
|
GtkTreeModel** model,
|
|
|
|
GtkTreeIter* iter);
|
|
|
|
|
2008-10-15 23:31:47 +00:00
|
|
|
gboolean
|
|
|
|
sokoke_same_day (const time_t* day1,
|
|
|
|
const time_t* day2);
|
|
|
|
|
2008-10-23 23:35:34 +00:00
|
|
|
gint
|
|
|
|
sokoke_days_between (const time_t* day1,
|
|
|
|
const time_t* day2);
|
|
|
|
|
2007-12-16 22:20:24 +00:00
|
|
|
#endif /* !__SOKOKE_H__ */
|