midori/src/sokoke.h

77 lines
1.8 KiB
C
Raw Normal View History

2007-12-16 22:20:24 +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
#include <gtk/gtk.h>
// Many themes need this hack for small toolbars to work
#define GTK_ICON_SIZE_SMALL_TOOLBAR GTK_ICON_SIZE_BUTTON
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
sokoke_combo_box_add_strings(GtkComboBox*, const gchar*, ...);
2007-12-16 22:20:24 +00:00
void
sokoke_widget_set_visible(GtkWidget*, gboolean);
2007-12-16 22:20:24 +00:00
void
sokoke_container_show_children(GtkContainer*);
2007-12-16 22:20:24 +00:00
void
sokoke_widget_set_tooltip_text(GtkWidget*, const gchar*);
2007-12-16 22:20:24 +00:00
void
sokoke_tool_item_set_tooltip_text(GtkToolItem*, const gchar*);
2007-12-16 22:20:24 +00:00
void
sokoke_widget_popup(GtkWidget*, GtkMenu*, GdkEventButton*, SokokeMenuPos pos);
2007-12-16 22:20:24 +00:00
gpointer
sokoke_xfce_header_new(const gchar*, const gchar*);
2007-12-16 22:20:24 +00:00
gpointer
sokoke_superuser_warning_new(void);
GtkWidget*
sokoke_hig_frame_new(const gchar*);
2007-12-16 22:20:24 +00:00
void
sokoke_widget_set_pango_font_style(GtkWidget*, PangoStyle);
2007-12-16 22:20:24 +00:00
void
sokoke_entry_set_default_text(GtkEntry*, const gchar*);
2007-12-16 22:20:24 +00:00
gchar*
sokoke_key_file_get_string_default(GKeyFile*, const gchar*, const gchar*
, const gchar*, GError**);
2007-12-16 22:20:24 +00:00
gint
sokoke_key_file_get_integer_default(GKeyFile*, const gchar*, const gchar*
, const gint, GError**);
2007-12-16 22:20:24 +00:00
gboolean
sokoke_key_file_save_to_file(GKeyFile*, const gchar*, GError**);
2007-12-16 22:20:24 +00:00
void
sokoke_widget_get_text_size(GtkWidget*, const gchar*, gint*, gint*);
2007-12-16 22:20:24 +00:00
void
sokoke_menu_item_set_accel(GtkMenuItem*, const gchar*, const gchar*, GdkModifierType);
2007-12-16 22:20:24 +00:00
#endif /* !__SOKOKE_H__ */