Add new calls for freezing box packing sizes without queueing spurious resize events.
[xiph/unicode.git] / sushivision / gtksucks.h
blob729b01f4581f9251067ef30c5c3b6b344d5a771c
1 /*
3 * sushivision copyright (C) 2006-2007 Monty <monty@xiph.org>
5 * sushivision is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2, or (at your option)
8 * any later version.
9 *
10 * sushivision is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with sushivision; see the file COPYING. If not, write to the
17 * Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
22 #ifndef _GTK_SUCKS_H_
23 #define _GTK_SUCKS_H_
25 typedef struct {
26 char *left;
27 char *right;
28 GtkWidget *submenu;
29 void (*callback)(sushiv_panel_t *);
30 } menuitem;
32 extern void gtk_widget_set_sensitive_fixup(GtkWidget *w, gboolean state);
33 extern void gtk_widget_remove_events (GtkWidget *widget, gint events);
34 extern void gtk_button3_fixup();
35 extern void gtk_mutex_fixup();
36 extern pthread_mutex_t *gtk_get_mutex();
37 extern GtkWidget *gtk_menu_new_twocol(GtkWidget *bind,
38 menuitem **items,
39 void *callback_data);
40 extern GtkWidget *gtk_menu_get_item(GtkMenu *m, int pos);
41 extern void gtk_menu_alter_item_label(GtkMenu *m, int pos, char *text);
42 extern void gtk_menu_alter_item_right(GtkMenu *m, int pos, char *text);
43 extern GtkWidget * gtk_combo_box_new_markup (void);
45 extern void gtk_box_freeze_child (GtkBox *box, GtkWidget *child);
46 extern void gtk_box_unfreeze_child (GtkBox *box, GtkWidget *child);
48 #endif