本文整理匯總了C++中GLADE_HOOKUP_OBJECT_NO_REF函數的典型用法代碼示例。如果您正苦於以下問題:C++ GLADE_HOOKUP_OBJECT_NO_REF函數的具體用法?C++ GLADE_HOOKUP_OBJECT_NO_REF怎麽用?C++ GLADE_HOOKUP_OBJECT_NO_REF使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了GLADE_HOOKUP_OBJECT_NO_REF函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。
示例1: gtk_file_selection_new
GtkWidget *create_fileselection1 (void)
{
GtkWidget *fileselection1;
GtkWidget *ok_button1;
GtkWidget *cancel_button1;
fileselection1 = gtk_file_selection_new (_("Select File"));
gtk_widget_show (fileselection1);
gtk_container_set_border_width (GTK_CONTAINER (fileselection1), 10);
ok_button1 = GTK_FILE_SELECTION (fileselection1)->ok_button;
gtk_widget_show (ok_button1);
GTK_WIDGET_SET_FLAGS (ok_button1, GTK_CAN_DEFAULT);
cancel_button1 = GTK_FILE_SELECTION (fileselection1)->cancel_button;
gtk_widget_show (cancel_button1);
GTK_WIDGET_SET_FLAGS (cancel_button1, GTK_CAN_DEFAULT);
// Patch
g_signal_connect ( GTK_OBJECT (ok_button1), "clicked", G_CALLBACK (response_accept_cb), fileselection1);
g_signal_connect ( GTK_OBJECT (cancel_button1), "clicked", G_CALLBACK (response_cancel_cb), fileselection1);
// /Patch
/* Store pointers to all widgets, for use by lookup_widget(). */
GLADE_HOOKUP_OBJECT_NO_REF (fileselection1, fileselection1, "fileselection1");
GLADE_HOOKUP_OBJECT_NO_REF (fileselection1, ok_button1, "ok_button1");
GLADE_HOOKUP_OBJECT_NO_REF (fileselection1, cancel_button1, "cancel_button1");
return fileselection1;
}
示例2: create_dialog1
GtkWidget*
create_dialog1 (void)
{
GtkWidget *dialog1;
GtkWidget *dialog_vbox1;
GtkWidget *image1;
GtkWidget *dialog_action_area1;
dialog1 = gtk_dialog_new ();
gtk_window_set_title (GTK_WINDOW (dialog1), _("Busy"));
dialog_vbox1 = GTK_DIALOG (dialog1)->vbox;
gtk_widget_show (dialog_vbox1);
image1 = gtk_image_new_from_stock ("gtk-clear", GTK_ICON_SIZE_BUTTON);
gtk_widget_show (image1);
gtk_box_pack_start (GTK_BOX (dialog_vbox1), image1, TRUE, TRUE, 0);
dialog_action_area1 = GTK_DIALOG (dialog1)->action_area;
gtk_widget_show (dialog_action_area1);
gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area1), GTK_BUTTONBOX_END);
/* Store pointers to all widgets, for use by lookup_widget(). */
GLADE_HOOKUP_OBJECT_NO_REF (dialog1, dialog1, "dialog1");
GLADE_HOOKUP_OBJECT_NO_REF (dialog1, dialog_vbox1, "dialog_vbox1");
GLADE_HOOKUP_OBJECT (dialog1, image1, "image1");
GLADE_HOOKUP_OBJECT_NO_REF (dialog1, dialog_action_area1, "dialog_action_area1");
return dialog1;
}
示例3: create_dialog1
/* =================================
Common Dialog
================================= */
GtkWidget*
create_dialog1 (void)
{
GtkWidget *dialog1;
GtkWidget *dialog_vbox1;
GtkWidget *vbox1;
GtkWidget *drawingarea1;
dialog1 = gtk_dialog_new ();
gtk_window_set_title (GTK_WINDOW (dialog1), QT_TR_NOOP("Preview"));
dialog_vbox1 = GTK_DIALOG (dialog1)->vbox;
gtk_widget_show (dialog_vbox1);
vbox1 = gtk_vbox_new (FALSE, 0);
gtk_widget_show (vbox1);
gtk_box_pack_start (GTK_BOX (dialog_vbox1), vbox1, TRUE, TRUE, 0);
drawingarea1 = gtk_drawing_area_new ();
gtk_widget_show (drawingarea1);
gtk_box_pack_start (GTK_BOX (vbox1), drawingarea1, FALSE, TRUE, 0);
gtk_widget_set_size_request (drawingarea1, 100, 100);
// Store pointers to all widgets, for use by lookup_widget().
GLADE_HOOKUP_OBJECT_NO_REF (dialog1, dialog1, "dialog1");
GLADE_HOOKUP_OBJECT_NO_REF (dialog1, dialog_vbox1, "dialog_vbox1");
GLADE_HOOKUP_OBJECT (dialog1, vbox1, "vbox1");
GLADE_HOOKUP_OBJECT (dialog1, drawingarea1, "drawingarea1");
return dialog1;
}
示例4: create_bsv_fs_dlg
GtkWidget*
create_bsv_fs_dlg (void)
{
GtkWidget *bsv_fs_dlg;
GtkWidget *ok_button1;
GtkWidget *cancel_button1;
bsv_fs_dlg = gtk_file_selection_new (_("Select File"));
gtk_container_set_border_width (GTK_CONTAINER (bsv_fs_dlg), 10);
ok_button1 = GTK_FILE_SELECTION (bsv_fs_dlg)->ok_button;
gtk_widget_show (ok_button1);
GTK_WIDGET_SET_FLAGS (ok_button1, GTK_CAN_DEFAULT);
cancel_button1 = GTK_FILE_SELECTION (bsv_fs_dlg)->cancel_button;
gtk_widget_show (cancel_button1);
GTK_WIDGET_SET_FLAGS (cancel_button1, GTK_CAN_DEFAULT);
g_signal_connect_swapped ((gpointer) bsv_fs_dlg, "delete_event",
G_CALLBACK (gtk_widget_hide),
GTK_OBJECT (bsv_fs_dlg));
g_signal_connect ((gpointer) ok_button1, "clicked",
G_CALLBACK (update_logfile),
NULL);
g_signal_connect_swapped ((gpointer) cancel_button1, "clicked",
G_CALLBACK (gtk_widget_hide),
GTK_OBJECT (bsv_fs_dlg));
/* Store pointers to all widgets, for use by lookup_widget(). */
GLADE_HOOKUP_OBJECT_NO_REF (bsv_fs_dlg, bsv_fs_dlg, "bsv_fs_dlg");
GLADE_HOOKUP_OBJECT_NO_REF (bsv_fs_dlg, ok_button1, "ok_button1");
GLADE_HOOKUP_OBJECT_NO_REF (bsv_fs_dlg, cancel_button1, "cancel_button1");
return bsv_fs_dlg;
}
示例5: sprintf
GtkWidget *create_tdb_about(void)
{
GtkWidget *tdb_about;
GtkWidget *vbox_about;
GtkWidget *hbox_about_text;
GtkWidget *img_about;
GtkWidget *l_about_about;
GtkWidget *dialog_action_about;
GtkWidget *b_about_close;
// set license text
gchar license[200];
sprintf(license, "%s %s", LIZMESS, tagid);
tdb_about = gtk_dialog_new();
gtk_window_set_title(GTK_WINDOW(tdb_about), _("About"));
//vbox_about = GTK_DIALOG(tdb_about)->vbox;
//gtk_widget_show(vbox_about);
hbox_about_text = gtk_hbox_new(FALSE, 0);
gtk_widget_show(hbox_about_text);
gtk_box_pack_start(GTK_BOX(vbox_about), hbox_about_text, TRUE, TRUE, 0);
img_about = create_pixmap(tdb_about, NULL);
gtk_widget_show(img_about);
gtk_box_pack_start(GTK_BOX(hbox_about_text), img_about, TRUE, TRUE, 0);
l_about_about = gtk_label_new(_(license));
gtk_widget_show(l_about_about);
gtk_box_pack_start(GTK_BOX(hbox_about_text), l_about_about, FALSE, FALSE,
0);
dialog_action_about = GTK_DIALOG(tdb_about)->action_area;
gtk_widget_show(dialog_action_about);
gtk_button_box_set_layout(GTK_BUTTON_BOX(dialog_action_about),
GTK_BUTTONBOX_END);
b_about_close = gtk_button_new_from_stock("gtk-close");
gtk_widget_show(b_about_close);
gtk_dialog_add_action_widget(GTK_DIALOG(tdb_about), b_about_close,
GTK_RESPONSE_CLOSE);
GTK_WIDGET_SET_FLAGS(b_about_close, GTK_CAN_DEFAULT);
g_signal_connect((gpointer) b_about_close, "clicked",
G_CALLBACK(on_b_about_close_clicked), NULL);
/* Store pointers to all widgets, for use by lookup_widget(). */
GLADE_HOOKUP_OBJECT_NO_REF(tdb_about, tdb_about, "tdb_about");
GLADE_HOOKUP_OBJECT_NO_REF(tdb_about, vbox_about, "vbox_about");
GLADE_HOOKUP_OBJECT(tdb_about, hbox_about_text, "hbox_about_text");
GLADE_HOOKUP_OBJECT(tdb_about, img_about, "img_about");
GLADE_HOOKUP_OBJECT(tdb_about, l_about_about, "l_about_about");
GLADE_HOOKUP_OBJECT_NO_REF(tdb_about, dialog_action_about,
"dialog_action_about");
GLADE_HOOKUP_OBJECT(tdb_about, b_about_close, "b_about_close");
return tdb_about;
}
示例6: create_dialog1
GtkWidget*
create_dialog1 (void)
{
GtkWidget *dialog1;
GtkWidget *dialog_vbox1;
GtkWidget *vbox1;
GtkWidget *label1;
GtkWidget *entry1;
GtkWidget *dialog_action_area1;
GtkWidget *cancelbutton1;
GtkWidget *okbutton1;
dialog1 = gtk_dialog_new ();
gtk_window_set_title (GTK_WINDOW (dialog1), _("Lame command"));
dialog_vbox1 = GTK_DIALOG (dialog1)->vbox;
gtk_widget_show (dialog_vbox1);
vbox1 = gtk_vbox_new (FALSE, 0);
gtk_widget_show (vbox1);
gtk_box_pack_start (GTK_BOX (dialog_vbox1), vbox1, TRUE, TRUE, 0);
label1 = gtk_label_new (_("Enter parameters (i.e. -b 192 -m s ...)"));
gtk_widget_show (label1);
gtk_box_pack_start (GTK_BOX (vbox1), label1, FALSE, FALSE, 0);
gtk_label_set_justify (GTK_LABEL (label1), GTK_JUSTIFY_LEFT);
entry1 = gtk_entry_new ();
gtk_widget_show (entry1);
gtk_box_pack_start (GTK_BOX (vbox1), entry1, FALSE, FALSE, 0);
dialog_action_area1 = GTK_DIALOG (dialog1)->action_area;
gtk_widget_show (dialog_action_area1);
gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area1), GTK_BUTTONBOX_END);
cancelbutton1 = gtk_button_new_from_stock ("gtk-cancel");
gtk_widget_show (cancelbutton1);
gtk_dialog_add_action_widget (GTK_DIALOG (dialog1), cancelbutton1, GTK_RESPONSE_CANCEL);
GTK_WIDGET_SET_FLAGS (cancelbutton1, GTK_CAN_DEFAULT);
okbutton1 = gtk_button_new_from_stock ("gtk-ok");
gtk_widget_show (okbutton1);
gtk_dialog_add_action_widget (GTK_DIALOG (dialog1), okbutton1, GTK_RESPONSE_OK);
GTK_WIDGET_SET_FLAGS (okbutton1, GTK_CAN_DEFAULT);
/* Store pointers to all widgets, for use by lookup_widget(). */
GLADE_HOOKUP_OBJECT_NO_REF (dialog1, dialog1, "dialog1");
GLADE_HOOKUP_OBJECT_NO_REF (dialog1, dialog_vbox1, "dialog_vbox1");
GLADE_HOOKUP_OBJECT (dialog1, vbox1, "vbox1");
GLADE_HOOKUP_OBJECT (dialog1, label1, "label1");
GLADE_HOOKUP_OBJECT (dialog1, entry1, "entry1");
GLADE_HOOKUP_OBJECT_NO_REF (dialog1, dialog_action_area1, "dialog_action_area1");
GLADE_HOOKUP_OBJECT (dialog1, cancelbutton1, "cancelbutton1");
GLADE_HOOKUP_OBJECT (dialog1, okbutton1, "okbutton1");
return dialog1;
}
示例7: gtk_dialog_new
GtkWidget *create_dialog1 (void)
{
GtkWidget *dialog1;
GtkWidget *dialog_vbox1;
GtkWidget *vbox1;
GtkWidget *hscale1;
GtkWidget *drawingarea1;
GtkWidget *dialog_action_area1;
GtkWidget *cancelbutton1;
GtkWidget *okbutton1;
dialog1 = gtk_dialog_new ();
gtk_window_set_title (GTK_WINDOW (dialog1), _("Rotate"));
dialog_vbox1 = GTK_DIALOG (dialog1)->vbox;
gtk_widget_show (dialog_vbox1);
vbox1 = gtk_vbox_new (FALSE, 0);
gtk_widget_show (vbox1);
gtk_box_pack_start (GTK_BOX (dialog_vbox1), vbox1, TRUE, TRUE, 0);
adj_angle=gtk_adjustment_new (0.0, 0.0, 360.0, 90.0, 90.0, 90.0);
hscale1 = gtk_hscale_new (GTK_ADJUSTMENT (adj_angle));
gtk_widget_show (hscale1);
gtk_box_pack_start (GTK_BOX (vbox1), hscale1, FALSE, TRUE, 0);
gtk_scale_set_digits (GTK_SCALE (hscale1), 0);
drawingarea1 = gtk_drawing_area_new ();
gtk_widget_show (drawingarea1);
gtk_box_pack_start (GTK_BOX (vbox1), drawingarea1, TRUE, TRUE, 0);
dialog_action_area1 = GTK_DIALOG (dialog1)->action_area;
gtk_widget_show (dialog_action_area1);
gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area1), GTK_BUTTONBOX_END);
cancelbutton1 = gtk_button_new_from_stock ("gtk-cancel");
gtk_widget_show (cancelbutton1);
gtk_dialog_add_action_widget (GTK_DIALOG (dialog1), cancelbutton1, GTK_RESPONSE_CANCEL);
GTK_WIDGET_SET_FLAGS (cancelbutton1, GTK_CAN_DEFAULT);
okbutton1 = gtk_button_new_from_stock ("gtk-ok");
gtk_widget_show (okbutton1);
gtk_dialog_add_action_widget (GTK_DIALOG (dialog1), okbutton1, GTK_RESPONSE_OK);
GTK_WIDGET_SET_FLAGS (okbutton1, GTK_CAN_DEFAULT);
/* Store pointers to all widgets, for use by lookup_widget(). */
GLADE_HOOKUP_OBJECT_NO_REF (dialog1, dialog1, "dialog1");
GLADE_HOOKUP_OBJECT_NO_REF (dialog1, dialog_vbox1, "dialog_vbox1");
GLADE_HOOKUP_OBJECT (dialog1, vbox1, "vbox1");
GLADE_HOOKUP_OBJECT (dialog1, hscale1, "hscale1");
GLADE_HOOKUP_OBJECT (dialog1, drawingarea1, "drawingarea1");
GLADE_HOOKUP_OBJECT_NO_REF (dialog1, dialog_action_area1, "dialog_action_area1");
GLADE_HOOKUP_OBJECT (dialog1, cancelbutton1, "cancelbutton1");
GLADE_HOOKUP_OBJECT (dialog1, okbutton1, "okbutton1");
return dialog1;
}
示例8: gtk_dialog_new
GtkWidget *create_dialog1 (void)
{
GtkWidget *dialog1;
GtkWidget *dialog_vbox1;
GtkWidget *hbox1;
GtkWidget *combobox1;
GtkWidget *buttonConf;
GtkWidget *dialog_action_area1;
GtkWidget *cancelbutton1;
GtkWidget *okbutton1;
dialog1 = gtk_dialog_new ();
gtk_window_set_title (GTK_WINDOW (dialog1), QT_TR_NOOP("Video encoder"));
gtk_window_set_type_hint (GTK_WINDOW (dialog1), GDK_WINDOW_TYPE_HINT_DIALOG);
dialog_vbox1 = GTK_DIALOG (dialog1)->vbox;
gtk_widget_show (dialog_vbox1);
hbox1 = gtk_hbox_new (FALSE, 0);
gtk_widget_show (hbox1);
gtk_box_pack_start (GTK_BOX (dialog_vbox1), hbox1, TRUE, TRUE, 0);
combobox1 = gtk_combo_box_new_text ();
gtk_widget_show (combobox1);
gtk_box_pack_start (GTK_BOX (hbox1), combobox1, TRUE, TRUE, 0);
buttonConf = gtk_button_new_with_mnemonic (QT_TR_NOOP("Configure"));
gtk_widget_show (buttonConf);
gtk_box_pack_start (GTK_BOX (hbox1), buttonConf, FALSE, FALSE, 0);
dialog_action_area1 = GTK_DIALOG (dialog1)->action_area;
gtk_widget_show (dialog_action_area1);
gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area1), GTK_BUTTONBOX_END);
cancelbutton1 = gtk_button_new_from_stock ("gtk-cancel");
gtk_widget_show (cancelbutton1);
gtk_dialog_add_action_widget (GTK_DIALOG (dialog1), cancelbutton1, GTK_RESPONSE_CANCEL);
GTK_WIDGET_SET_FLAGS (cancelbutton1, GTK_CAN_DEFAULT);
okbutton1 = gtk_button_new_from_stock ("gtk-ok");
gtk_widget_show (okbutton1);
gtk_dialog_add_action_widget (GTK_DIALOG (dialog1), okbutton1, GTK_RESPONSE_OK);
GTK_WIDGET_SET_FLAGS (okbutton1, GTK_CAN_DEFAULT);
/* Store pointers to all widgets, for use by lookup_widget(). */
GLADE_HOOKUP_OBJECT_NO_REF (dialog1, dialog1, "dialog1");
GLADE_HOOKUP_OBJECT_NO_REF (dialog1, dialog_vbox1, "dialog_vbox1");
GLADE_HOOKUP_OBJECT (dialog1, hbox1, "hbox1");
GLADE_HOOKUP_OBJECT (dialog1, combobox1, "combobox1");
GLADE_HOOKUP_OBJECT (dialog1, buttonConf, "buttonConf");
GLADE_HOOKUP_OBJECT_NO_REF (dialog1, dialog_action_area1, "dialog_action_area1");
GLADE_HOOKUP_OBJECT (dialog1, cancelbutton1, "cancelbutton1");
GLADE_HOOKUP_OBJECT (dialog1, okbutton1, "okbutton1");
return dialog1;
}
示例9: create_MainWindow
GtkWidget*
create_MainWindow (void)
{
GtkWidget *MainWindow;
GtkWidget *SplitPane;
GtkWidget *RemoteText;
GtkWidget *LocalText;
GtkTooltips *tooltips;
tooltips = gtk_tooltips_new ();
MainWindow = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_widget_set_size_request (MainWindow, 400, 300);
gtk_window_set_title (GTK_WINDOW (MainWindow), "Synchronet Sysop Chat");
gtk_window_set_icon_name (GTK_WINDOW (MainWindow), "stock_help-chat");
gtk_window_set_type_hint (GTK_WINDOW (MainWindow), GDK_WINDOW_TYPE_HINT_UTILITY);
SplitPane = gtk_vpaned_new ();
gtk_widget_show (SplitPane);
gtk_container_add (GTK_CONTAINER (MainWindow), SplitPane);
gtk_paned_set_position (GTK_PANED (SplitPane), 148);
RemoteText = gtk_text_view_new ();
gtk_widget_show (RemoteText);
gtk_paned_pack1 (GTK_PANED (SplitPane), RemoteText, FALSE, TRUE);
GTK_WIDGET_UNSET_FLAGS (RemoteText, GTK_CAN_FOCUS);
gtk_tooltips_set_tip (tooltips, RemoteText, "Remote Text Window", NULL);
gtk_text_view_set_editable (GTK_TEXT_VIEW (RemoteText), FALSE);
gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (RemoteText), GTK_WRAP_WORD);
LocalText = gtk_text_view_new ();
gtk_widget_show (LocalText);
gtk_paned_pack2 (GTK_PANED (SplitPane), LocalText, TRUE, TRUE);
gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (LocalText), GTK_WRAP_WORD);
gtk_text_view_set_editable (GTK_TEXT_VIEW (LocalText), FALSE);
g_signal_connect ((gpointer) MainWindow, "destroy",
G_CALLBACK (on_MainWindow_destroy),
NULL);
g_signal_connect ((gpointer) LocalText, "key_press_event",
G_CALLBACK (on_LocalText_key_press_event),
NULL);
/* Store pointers to all widgets, for use by lookup_widget(). */
GLADE_HOOKUP_OBJECT_NO_REF (MainWindow, MainWindow, "MainWindow");
GLADE_HOOKUP_OBJECT (MainWindow, SplitPane, "SplitPane");
GLADE_HOOKUP_OBJECT (MainWindow, RemoteText, "RemoteText");
GLADE_HOOKUP_OBJECT (MainWindow, LocalText, "LocalText");
GLADE_HOOKUP_OBJECT_NO_REF (MainWindow, tooltips, "tooltips");
gtk_widget_grab_focus (LocalText);
gtk_timeout_add(50, get_from_remote, RemoteText);
return MainWindow;
}
示例10: create_bsv_driver_info_dlg
GtkWidget*
create_bsv_driver_info_dlg (void)
{
GtkWidget *bsv_driver_info_dlg;
GtkWidget *dialog_vbox2;
GtkWidget *hbox26;
GtkWidget *label_desc;
GtkWidget *label_val;
GtkWidget *dialog_action_area2;
GtkWidget *okbutton2;
bsv_driver_info_dlg = gtk_dialog_new ();
gtk_window_set_title (GTK_WINDOW (bsv_driver_info_dlg), _("Driver Information"));
dialog_vbox2 = GTK_DIALOG (bsv_driver_info_dlg)->vbox;
gtk_widget_show (dialog_vbox2);
hbox26 = gtk_hbox_new (FALSE, 0);
gtk_widget_show (hbox26);
gtk_box_pack_start (GTK_BOX (dialog_vbox2), hbox26, TRUE, TRUE, 0);
label_desc = gtk_label_new (_("label14"));
gtk_widget_show (label_desc);
gtk_box_pack_start (GTK_BOX (hbox26), label_desc, TRUE, TRUE, 0);
label_val = gtk_label_new (_("label15"));
gtk_widget_show (label_val);
gtk_box_pack_start (GTK_BOX (hbox26), label_val, TRUE, TRUE, 0);
dialog_action_area2 = GTK_DIALOG (bsv_driver_info_dlg)->action_area;
gtk_widget_show (dialog_action_area2);
gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area2), GTK_BUTTONBOX_END);
okbutton2 = gtk_button_new_from_stock ("gtk-ok");
gtk_widget_show (okbutton2);
gtk_dialog_add_action_widget (GTK_DIALOG (bsv_driver_info_dlg), okbutton2, GTK_RESPONSE_OK);
GTK_WIDGET_SET_FLAGS (okbutton2, GTK_CAN_DEFAULT);
g_signal_connect_swapped ((gpointer) bsv_driver_info_dlg, "delete_event",
G_CALLBACK (gtk_widget_hide),
GTK_OBJECT (bsv_driver_info_dlg));
g_signal_connect_swapped ((gpointer) okbutton2, "clicked",
G_CALLBACK (gtk_widget_hide),
GTK_OBJECT (bsv_driver_info_dlg));
/* Store pointers to all widgets, for use by lookup_widget(). */
GLADE_HOOKUP_OBJECT_NO_REF (bsv_driver_info_dlg, bsv_driver_info_dlg, "bsv_driver_info_dlg");
GLADE_HOOKUP_OBJECT_NO_REF (bsv_driver_info_dlg, dialog_vbox2, "dialog_vbox2");
GLADE_HOOKUP_OBJECT (bsv_driver_info_dlg, hbox26, "hbox26");
GLADE_HOOKUP_OBJECT (bsv_driver_info_dlg, label_desc, "label_desc");
GLADE_HOOKUP_OBJECT (bsv_driver_info_dlg, label_val, "label_val");
GLADE_HOOKUP_OBJECT_NO_REF (bsv_driver_info_dlg, dialog_action_area2, "dialog_action_area2");
GLADE_HOOKUP_OBJECT (bsv_driver_info_dlg, okbutton2, "okbutton2");
return bsv_driver_info_dlg;
}
示例11: create_dialog1
GtkWidget*
create_dialog1 (void)
{
GtkWidget *dialog1;
GtkWidget *dialog_vbox1;
GtkWidget *vbox1;
GtkWidget *checkbuttonSwap;
GtkWidget *checkbutton2;
GtkWidget *dialog_action_area1;
GtkWidget *cancelbutton1;
GtkWidget *okbutton1;
dialog1 = gtk_dialog_new ();
gtk_window_set_title (GTK_WINDOW (dialog1), _("Libavcodec Decoder Option"));
dialog_vbox1 = GTK_DIALOG (dialog1)->vbox;
gtk_widget_show (dialog_vbox1);
vbox1 = gtk_vbox_new (FALSE, 0);
gtk_widget_show (vbox1);
gtk_box_pack_start (GTK_BOX (dialog_vbox1), vbox1, TRUE, TRUE, 0);
checkbuttonSwap = gtk_check_button_new_with_mnemonic (_("Swap UV"));
gtk_widget_show (checkbuttonSwap);
gtk_box_pack_start (GTK_BOX (vbox1), checkbuttonSwap, FALSE, FALSE, 0);
checkbutton2 = gtk_check_button_new_with_mnemonic (_("Show motion Vectors"));
gtk_widget_show (checkbutton2);
gtk_box_pack_start (GTK_BOX (vbox1), checkbutton2, FALSE, FALSE, 0);
dialog_action_area1 = GTK_DIALOG (dialog1)->action_area;
gtk_widget_show (dialog_action_area1);
gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area1), GTK_BUTTONBOX_END);
cancelbutton1 = gtk_button_new_from_stock ("gtk-cancel");
gtk_widget_show (cancelbutton1);
gtk_dialog_add_action_widget (GTK_DIALOG (dialog1), cancelbutton1, GTK_RESPONSE_CANCEL);
GTK_WIDGET_SET_FLAGS (cancelbutton1, GTK_CAN_DEFAULT);
okbutton1 = gtk_button_new_from_stock ("gtk-ok");
gtk_widget_show (okbutton1);
gtk_dialog_add_action_widget (GTK_DIALOG (dialog1), okbutton1, GTK_RESPONSE_OK);
GTK_WIDGET_SET_FLAGS (okbutton1, GTK_CAN_DEFAULT);
/* Store pointers to all widgets, for use by lookup_widget(). */
GLADE_HOOKUP_OBJECT_NO_REF (dialog1, dialog1, "dialog1");
GLADE_HOOKUP_OBJECT_NO_REF (dialog1, dialog_vbox1, "dialog_vbox1");
GLADE_HOOKUP_OBJECT (dialog1, vbox1, "vbox1");
GLADE_HOOKUP_OBJECT (dialog1, checkbuttonSwap, "checkbuttonSwap");
GLADE_HOOKUP_OBJECT (dialog1, checkbutton2, "checkbutton2");
GLADE_HOOKUP_OBJECT_NO_REF (dialog1, dialog_action_area1, "dialog_action_area1");
GLADE_HOOKUP_OBJECT (dialog1, cancelbutton1, "cancelbutton1");
GLADE_HOOKUP_OBJECT (dialog1, okbutton1, "okbutton1");
return dialog1;
}
示例12: gtk_dialog_new
GtkWidget *create_tdb_exit(void)
{
GtkWidget *tdb_exit;
GtkWidget *vbox_exit;
GtkWidget *l_exit_q;
GtkWidget *dialog_action_exit;
GtkWidget *b_exit_cancel;
GtkWidget *b_exit_ok;
tdb_exit = gtk_dialog_new();
gtk_window_set_title(GTK_WINDOW(tdb_exit), _("Exit"));
vbox_exit = GTK_DIALOG(tdb_exit)->vbox;
gtk_widget_show(vbox_exit);
l_exit_q =
gtk_label_new(_
("Do you really want to exit and close any open work ?"));
gtk_widget_show(l_exit_q);
gtk_box_pack_start(GTK_BOX(vbox_exit), l_exit_q, TRUE, FALSE, 0);
gtk_misc_set_padding(GTK_MISC(l_exit_q), 0, 15);
dialog_action_exit = GTK_DIALOG(tdb_exit)->action_area;
gtk_widget_show(dialog_action_exit);
gtk_button_box_set_layout(GTK_BUTTON_BOX(dialog_action_exit),
GTK_BUTTONBOX_END);
b_exit_cancel = gtk_button_new_from_stock("gtk-cancel");
gtk_widget_show(b_exit_cancel);
gtk_dialog_add_action_widget(GTK_DIALOG(tdb_exit), b_exit_cancel,
GTK_RESPONSE_CANCEL);
GTK_WIDGET_SET_FLAGS(b_exit_cancel, GTK_CAN_DEFAULT);
b_exit_ok = gtk_button_new_from_stock("gtk-ok");
gtk_widget_show(b_exit_ok);
gtk_dialog_add_action_widget(GTK_DIALOG(tdb_exit), b_exit_ok,
GTK_RESPONSE_OK);
GTK_WIDGET_SET_FLAGS(b_exit_ok, GTK_CAN_DEFAULT);
g_signal_connect((gpointer) b_exit_cancel, "clicked",
G_CALLBACK(on_b_exit_cancel_clicked), NULL);
g_signal_connect((gpointer) b_exit_ok, "clicked",
G_CALLBACK(on_b_exit_ok_clicked), NULL);
/* Store pointers to all widgets, for use by lookup_widget(). */
GLADE_HOOKUP_OBJECT_NO_REF(tdb_exit, tdb_exit, "tdb_exit");
GLADE_HOOKUP_OBJECT_NO_REF(tdb_exit, vbox_exit, "vbox_exit");
GLADE_HOOKUP_OBJECT(tdb_exit, l_exit_q, "l_exit_q");
GLADE_HOOKUP_OBJECT_NO_REF(tdb_exit, dialog_action_exit,
"dialog_action_exit");
GLADE_HOOKUP_OBJECT(tdb_exit, b_exit_cancel, "b_exit_cancel");
GLADE_HOOKUP_OBJECT(tdb_exit, b_exit_ok, "b_exit_ok");
return tdb_exit;
}
示例13: create_dialog1
GtkWidget*
create_dialog1 (void)
{
GtkWidget *dialog1;
GtkWidget *dialog_vbox1;
GtkWidget *fixed3;
GtkWidget *label5;
GtkWidget *dialog_action_area1;
GtkWidget *okbutton1;
dialog1 = gtk_dialog_new ();
gtk_window_set_title (GTK_WINDOW (dialog1), _("Warning"));
gtk_window_set_position (GTK_WINDOW (dialog1), GTK_WIN_POS_CENTER);
gtk_window_set_modal (GTK_WINDOW (dialog1), TRUE);
gtk_window_set_destroy_with_parent (GTK_WINDOW (dialog1), TRUE);
gtk_window_set_type_hint (GTK_WINDOW (dialog1), GDK_WINDOW_TYPE_HINT_DIALOG);
dialog_vbox1 = GTK_DIALOG (dialog1)->vbox;
gtk_widget_show (dialog_vbox1);
fixed3 = gtk_fixed_new ();
gtk_widget_show (fixed3);
gtk_box_pack_start (GTK_BOX (dialog_vbox1), fixed3, TRUE, TRUE, 0);
label5 = gtk_label_new (_("Background Setting successfully saved. "));
gtk_widget_show (label5);
gtk_fixed_put (GTK_FIXED (fixed3), label5, 32, 8);
gtk_widget_set_size_request (label5, 288, 56);
dialog_action_area1 = GTK_DIALOG (dialog1)->action_area;
gtk_widget_show (dialog_action_area1);
gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area1), GTK_BUTTONBOX_END);
okbutton1 = gtk_button_new_from_stock ("gtk-ok");
gtk_widget_show (okbutton1);
gtk_dialog_add_action_widget (GTK_DIALOG (dialog1), okbutton1, GTK_RESPONSE_OK);
GTK_WIDGET_SET_FLAGS (okbutton1, GTK_CAN_DEFAULT);
g_signal_connect ((gpointer) okbutton1, "clicked",
G_CALLBACK (on_okbutton1_clicked),
NULL);
/* Store pointers to all widgets, for use by lookup_widget(). */
GLADE_HOOKUP_OBJECT_NO_REF (dialog1, dialog1, "dialog1");
GLADE_HOOKUP_OBJECT_NO_REF (dialog1, dialog_vbox1, "dialog_vbox1");
GLADE_HOOKUP_OBJECT (dialog1, fixed3, "fixed3");
GLADE_HOOKUP_OBJECT (dialog1, label5, "label5");
GLADE_HOOKUP_OBJECT_NO_REF (dialog1, dialog_action_area1, "dialog_action_area1");
GLADE_HOOKUP_OBJECT (dialog1, okbutton1, "okbutton1");
return dialog1;
}
示例14: create_Offline
GtkWidget* create_Offline (void)
{
GtkWidget *Offline;
GtkWidget *dialog_vbox4;
GtkWidget *dialog_action_area4;
GtkWidget *butOfflineDelete;
GtkWidget *butOfflineClose;
Offline = gnome_dialog_new (_("gchat - Offline Messages"), NULL);
gtk_widget_set_usize (Offline, 500, 250);
gtk_window_set_default_size (GTK_WINDOW (Offline), 350, 200);
gtk_window_set_resizable (GTK_WINDOW (Offline), FALSE);
dialog_vbox4 = GNOME_DIALOG (Offline)->vbox;
gtk_widget_show (dialog_vbox4);
scrolledwindow4 = gtk_scrolled_window_new (NULL, NULL);
gtk_widget_show (scrolledwindow4);
gtk_box_pack_start (GTK_BOX (dialog_vbox4), scrolledwindow4, TRUE, TRUE, 0);
dialog_action_area4 = GNOME_DIALOG (Offline)->action_area;
gtk_widget_show (dialog_action_area4);
gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area4), GTK_BUTTONBOX_EDGE);
gnome_dialog_append_button (GNOME_DIALOG (Offline), "gtk-delete");
butOfflineDelete = GTK_WIDGET (g_list_last (GNOME_DIALOG (Offline)->buttons)->data);
gtk_widget_show (butOfflineDelete);
gtk_widget_set_sensitive (butOfflineDelete, FALSE);
GTK_WIDGET_SET_FLAGS (butOfflineDelete, GTK_CAN_DEFAULT);
gnome_dialog_append_button (GNOME_DIALOG (Offline), "gtk-close");
butOfflineClose = GTK_WIDGET (g_list_last (GNOME_DIALOG (Offline)->buttons)->data);
gtk_widget_show (butOfflineClose);
GTK_WIDGET_SET_FLAGS (butOfflineClose, GTK_CAN_DEFAULT);
gtk_signal_connect (GTK_OBJECT (butOfflineDelete), "clicked",
G_CALLBACK (on_butOfflineDelete_clicked),
NULL);
gtk_signal_connect (GTK_OBJECT (butOfflineClose), "clicked",
G_CALLBACK (on_butOfflineClose_clicked),
NULL);
/* Store pointers to all widgets, for use by lookup_widget(). */
GLADE_HOOKUP_OBJECT_NO_REF (Offline, Offline, "Offline");
GLADE_HOOKUP_OBJECT_NO_REF (Offline, dialog_vbox4, "dialog_vbox4");
GLADE_HOOKUP_OBJECT (Offline, scrolledwindow4, "scrolledwindow4");
GLADE_HOOKUP_OBJECT_NO_REF (Offline, dialog_action_area4, "dialog_action_area4");
GLADE_HOOKUP_OBJECT (Offline, butOfflineDelete, "butOfflineDelete");
GLADE_HOOKUP_OBJECT (Offline, butOfflineClose, "butOfflineClose");
return Offline;
}
示例15: create_aboutdialog1
GtkWidget*
create_aboutdialog1 (void)
{
GtkWidget *aboutdialog1;
const gchar *authors[] = {
"[email protected]",
"[email protected]",
NULL
};
/* TRANSLATORS: Replace this string with your names, one name per line. */
gchar *translators = _("translator-credits");
GdkPixbuf *aboutdialog1_logo_pixbuf;
aboutdialog1 = gtk_about_dialog_new ();
gtk_about_dialog_set_version (GTK_ABOUT_DIALOG (aboutdialog1), VERSION);
gtk_about_dialog_set_name (GTK_ABOUT_DIALOG (aboutdialog1), _("MyNet"));
gtk_about_dialog_set_copyright (GTK_ABOUT_DIALOG (aboutdialog1), _("copyright 2006 cc0cc"));
gtk_about_dialog_set_comments (GTK_ABOUT_DIALOG (aboutdialog1), _("\345\243\260\346\230\216\357\274\232MyNet\346\230\257\344\273\245\347\240\224\347\251\266\345\222\214\345\255\246\344\271\240\344\270\272\347\233\256\347\232\204\345\274\200\345\217\221\347\232\204\357\274\214\346\210\221\344\273\254\346\211\200\345\201\232\347\232\204\344\270\200\345\210\207\351\203\275\351\201\265\345\276\252\344\270\255\345\215\216\344\272\272\346\260\221\345\205\261\345\222\214\345\233\275\343\200\212\350\256\241\347\256\227\346\234\272\350\275\257\344\273\266\344\277\235\346\212\244\346\235\241\344\276\213\343\200\213\343\200\202\n\345\246\202\346\236\234\344\275\240\345\234\250\345\255\246\344\271\240\350\277\207\347\250\213\344\270\255\351\234\200\350\246\201\346\255\244\350\275\257\344\273\266\357\274\214\350\257\267\345\210\260cc0cc.126.com\346\217\220\344\272\244\344\275\240\347\232\204\345\206\205\347\275\221IP\345\222\214E-mail"));
gtk_about_dialog_set_authors (GTK_ABOUT_DIALOG (aboutdialog1), authors);
gtk_about_dialog_set_translator_credits (GTK_ABOUT_DIALOG (aboutdialog1), translators);
aboutdialog1_logo_pixbuf = gdk_pixbuf_new_from_xpm_data((gchar **)MyNet_xpm);
//create_pixbuf ("../pixmaps/MyNet.png");
gtk_about_dialog_set_logo (GTK_ABOUT_DIALOG (aboutdialog1), aboutdialog1_logo_pixbuf);
if (aboutdialog1_logo_pixbuf)
{
gtk_window_set_icon (GTK_WINDOW (aboutdialog1), aboutdialog1_logo_pixbuf);
gdk_pixbuf_unref (aboutdialog1_logo_pixbuf);
}
/* Store pointers to all widgets, for use by lookup_widget(). */
GLADE_HOOKUP_OBJECT_NO_REF (aboutdialog1, aboutdialog1, "aboutdialog1");
return aboutdialog1;
}