1 | #include "customwidgets.h"␊ |
2 | ␊ |
3 | #define WNCK_I_KNOW_THIS_IS_UNSTABLE 1␊ |
4 | #include <libwnck/libwnck.h>␊ |
5 | ␊ |
6 | GtkWidget *␊ |
7 | gp_pager_new (gchar *widget_name,␊ |
8 | ␉ gchar *string1,␊ |
9 | ␉ gchar *string2,␊ |
10 | ␉ gint int1,␊ |
11 | ␉ gint int2)␊ |
12 | {␊ |
13 | WnckScreen *screen;␊ |
14 | GtkWidget *widget;␊ |
15 | ␊ |
16 | screen = wnck_screen_get_default ();␊ |
17 | wnck_screen_force_update (screen);␊ |
18 | ␊ |
19 | widget = wnck_pager_new (screen);␊ |
20 | wnck_pager_set_orientation (WNCK_PAGER (widget), GTK_ORIENTATION_HORIZONTAL);␊ |
21 | wnck_pager_set_n_rows (WNCK_PAGER (widget), 1);␊ |
22 | wnck_pager_set_shadow_type (WNCK_PAGER (widget), GTK_SHADOW_NONE);␊ |
23 | ␊ |
24 | return widget;␊ |
25 | }␊ |