| 78 |
78 |
| 79 typedef gboolean (*PidginFilterBuddyCompletionEntryFunc) (const PidginBuddyCompletionEntry *completion_entry, gpointer user_data); |
79 typedef gboolean (*PidginFilterBuddyCompletionEntryFunc) (const PidginBuddyCompletionEntry *completion_entry, gpointer user_data); |
| 80 |
80 |
| 81 |
81 |
| 82 G_BEGIN_DECLS |
82 G_BEGIN_DECLS |
| 83 |
|
| 84 /** |
|
| 85 * pidgin_setup_webview: |
|
| 86 * @webview: The gtkwebview widget to setup. |
|
| 87 * |
|
| 88 * Sets up a gtkwebview widget and sets the default signal handlers. |
|
| 89 */ |
|
| 90 void pidgin_setup_webview(GtkWidget *webview); |
|
| 91 |
|
| 92 /** |
|
| 93 * pidgin_create_webview: |
|
| 94 * @editable: %TRUE if this webview should be editable. If this is |
|
| 95 * %FALSE, then the toolbar will NOT be created. If this webview |
|
| 96 * should be read-only at first, but may become editable later, then |
|
| 97 * pass in %TRUE here and then manually call |
|
| 98 * webkit_web_view_set_editable() later. |
|
| 99 * @webview_ret: A pointer to a pointer to a GtkWidget. This pointer |
|
| 100 * will be set to the webview when this function exits. |
|
| 101 * @sw_ret: This will be filled with a pointer to the scrolled window |
|
| 102 * widget which contains the webview. |
|
| 103 * |
|
| 104 * Create an PidginWebView widget and associated PidginWebViewToolbar widget. This |
|
| 105 * function puts both widgets in a nice GtkFrame. They're separated by an |
|
| 106 * attractive GtkSeparator. |
|
| 107 * |
|
| 108 * Returns: (transfer full): The GtkFrame containing the toolbar and webview. |
|
| 109 */ |
|
| 110 GtkWidget *pidgin_create_webview(gboolean editable, GtkWidget **webview_ret, GtkWidget **sw_ret); |
|
| 111 |
83 |
| 112 /** |
84 /** |
| 113 * pidgin_create_small_button: |
85 * pidgin_create_small_button: |
| 114 * @image: A button image. |
86 * @image: A button image. |
| 115 * |
87 * |
| 918 * |
890 * |
| 919 * Returns: (transfer full): A scrolled window with @child packed inside of it. |
891 * Returns: (transfer full): A scrolled window with @child packed inside of it. |
| 920 */ |
892 */ |
| 921 GtkWidget *pidgin_make_scrollable(GtkWidget *child, GtkPolicyType hscrollbar_policy, GtkPolicyType vscrollbar_policy, GtkShadowType shadow_type, int width, int height); |
893 GtkWidget *pidgin_make_scrollable(GtkWidget *child, GtkPolicyType hscrollbar_policy, GtkPolicyType vscrollbar_policy, GtkShadowType shadow_type, int width, int height); |
| 922 |
894 |
| 923 /** |
|
| 924 * pidgin_utils_init: |
|
| 925 * |
|
| 926 * Initialize some utility functions. |
|
| 927 */ |
|
| 928 void pidgin_utils_init(void); |
|
| 929 |
|
| 930 /** |
|
| 931 * pidgin_utils_uninit: |
|
| 932 * |
|
| 933 * Uninitialize some utility functions. |
|
| 934 */ |
|
| 935 void pidgin_utils_uninit(void); |
|
| 936 |
|
| 937 G_END_DECLS |
895 G_END_DECLS |
| 938 |
896 |
| 939 #endif /* _PIDGINUTILS_H_ */ |
897 #endif /* _PIDGINUTILS_H_ */ |
| 940 |
898 |