61 lines
1.9 KiB
Text
61 lines
1.9 KiB
Text
$NetBSD: patch-af,v 1.1 2005/01/21 20:17:58 kristerw Exp $
|
|
|
|
--- preview_pane.c.orig Fri Jan 21 21:01:56 2005
|
|
+++ preview_pane.c Fri Jan 21 21:12:41 2005
|
|
@@ -23,17 +23,20 @@
|
|
|
|
GtkWidget* create_preview_pane(void)
|
|
{
|
|
+ GtkWidget* frame;
|
|
GtkBox* box = GTK_BOX(unfocussable(gtk_vbox_new(FALSE, 5)));
|
|
|
|
{
|
|
gint i;
|
|
|
|
+ GtkWidget *item;
|
|
+ GSList* group;
|
|
GtkWidget *menubar = unfocussable(gtk_menu_bar_new());
|
|
|
|
GtkWidget *menu = unfocussable(gtk_menu_new());
|
|
gtk_menu_shell_append(GTK_MENU_SHELL(menu), unfocussable(gtk_tearoff_menu_item_new()));
|
|
|
|
- GtkWidget *item = unfocussable(gtk_menu_item_new_with_label("Menu"));
|
|
+ item = unfocussable(gtk_menu_item_new_with_label("Menu"));
|
|
gtk_menu_shell_append(GTK_MENU_SHELL(menubar), item);
|
|
gtk_menu_item_set_submenu(GTK_MENU_ITEM(item), menu);
|
|
|
|
@@ -51,7 +54,7 @@
|
|
|
|
gtk_menu_shell_append(GTK_MENU_SHELL(menu), unfocussable(gtk_separator_menu_item_new()));
|
|
|
|
- GSList* group = NULL;
|
|
+ group = NULL;
|
|
for (i = 0; i < MENU_PREVIEW_ITEMS; i++)
|
|
{
|
|
item = unfocussable(gtk_radio_menu_item_new_with_label(group, "Radio"));
|
|
@@ -77,6 +80,7 @@
|
|
{
|
|
GtkToolbar* toolbar = GTK_TOOLBAR(unfocussable(gtk_toolbar_new()));
|
|
GtkWidget* button;
|
|
+ GtkRadioButton* radio;
|
|
|
|
button = unfocussable(gtk_check_button_new_with_label("Check 1"));
|
|
gtk_toolbar_append_widget(toolbar, button, "Tooltip", "");
|
|
@@ -87,8 +91,6 @@
|
|
|
|
gtk_toolbar_append_space(toolbar);
|
|
|
|
- GtkRadioButton* radio;
|
|
-
|
|
radio = GTK_RADIO_BUTTON(unfocussable(gtk_radio_button_new_with_label(NULL, "Radio 1")));
|
|
gtk_toolbar_append_widget(toolbar, GTK_WIDGET(radio), "Tooltip", "");
|
|
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(radio), TRUE);
|
|
@@ -143,7 +145,7 @@
|
|
gtk_box_pack_start(box, GTK_WIDGET(hbox), FALSE, FALSE, 0);
|
|
}
|
|
|
|
- GtkWidget* frame = unfocussable(gtk_frame_new("Preview"));
|
|
+ frame = unfocussable(gtk_frame_new("Preview"));
|
|
gtk_container_add(GTK_CONTAINER(frame), GTK_WIDGET(box));
|
|
|
|
return frame;
|