"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "interface.c" between
usbview-2.2.tar.gz and usbview-3.0.tar.gz

About: USBView displays information and topography of the devices that are plugged into the USB bus (requires GTK).

interface.c  (usbview-2.2):interface.c  (usbview-3.0)
skipping to change at line 71 skipping to change at line 71
} }
GtkWidget* GtkWidget*
create_windowMain () create_windowMain ()
{ {
GtkWidget *vbox1; GtkWidget *vbox1;
GtkWidget *hpaned1; GtkWidget *hpaned1;
GtkWidget *scrolledwindow1; GtkWidget *scrolledwindow1;
GtkWidget *hbuttonbox1; GtkWidget *hbuttonbox1;
GtkWidget *buttonRefresh; GtkWidget *buttonRefresh;
GtkWidget *buttonConfigure;
GtkWidget *buttonClose; GtkWidget *buttonClose;
GtkWidget *buttonAbout; GtkWidget *buttonAbout;
GdkPixbuf *icon; GdkPixbuf *icon;
GtkCellRenderer *treeRenderer; GtkCellRenderer *treeRenderer;
windowMain = gtk_window_new (GTK_WINDOW_TOPLEVEL); windowMain = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_widget_set_name (windowMain, "windowMain"); gtk_widget_set_name (windowMain, "windowMain");
gtk_window_set_title (GTK_WINDOW (windowMain), "USB Viewer"); gtk_window_set_title (GTK_WINDOW (windowMain), "USB Viewer");
gtk_window_set_default_size (GTK_WINDOW (windowMain), 600, 300); gtk_window_set_default_size (GTK_WINDOW (windowMain), 600, 300);
skipping to change at line 142 skipping to change at line 141
//gtk_button_box_set_child_size (GTK_BUTTON_BOX (hbuttonbox1), 50, 25); //gtk_button_box_set_child_size (GTK_BUTTON_BOX (hbuttonbox1), 50, 25);
//gtk_button_box_set_child_ipadding (GTK_BUTTON_BOX (hbuttonbox1), 25, 10 ); //gtk_button_box_set_child_ipadding (GTK_BUTTON_BOX (hbuttonbox1), 25, 10 );
buttonRefresh = gtk_button_new_with_label("Refresh"); buttonRefresh = gtk_button_new_with_label("Refresh");
gtk_widget_set_name (buttonRefresh, "buttonRefresh"); gtk_widget_set_name (buttonRefresh, "buttonRefresh");
gtk_widget_show (buttonRefresh); gtk_widget_show (buttonRefresh);
gtk_container_add (GTK_CONTAINER (hbuttonbox1), buttonRefresh); gtk_container_add (GTK_CONTAINER (hbuttonbox1), buttonRefresh);
gtk_container_set_border_width (GTK_CONTAINER (buttonRefresh), 4); gtk_container_set_border_width (GTK_CONTAINER (buttonRefresh), 4);
gtk_widget_set_can_default (buttonRefresh, TRUE); gtk_widget_set_can_default (buttonRefresh, TRUE);
buttonConfigure = gtk_button_new_with_label ("Configure...");
gtk_widget_set_name (buttonConfigure, "buttonConfigure");
gtk_widget_show (buttonConfigure);
gtk_container_add (GTK_CONTAINER (hbuttonbox1), buttonConfigure);
gtk_container_set_border_width (GTK_CONTAINER (buttonConfigure), 4);
gtk_widget_set_can_default (buttonConfigure, TRUE);
buttonAbout = gtk_button_new_with_label("About"); buttonAbout = gtk_button_new_with_label("About");
gtk_widget_set_name (buttonAbout, "buttonAbout"); gtk_widget_set_name (buttonAbout, "buttonAbout");
gtk_widget_show (buttonAbout); gtk_widget_show (buttonAbout);
gtk_container_add (GTK_CONTAINER (hbuttonbox1), buttonAbout); gtk_container_add (GTK_CONTAINER (hbuttonbox1), buttonAbout);
gtk_container_set_border_width (GTK_CONTAINER (buttonAbout), 4); gtk_container_set_border_width (GTK_CONTAINER (buttonAbout), 4);
gtk_widget_set_can_default (buttonAbout, TRUE); gtk_widget_set_can_default (buttonAbout, TRUE);
buttonClose = gtk_button_new_with_label("Quit"); buttonClose = gtk_button_new_with_label("Quit");
gtk_widget_set_name (buttonClose, "buttonClose"); gtk_widget_set_name (buttonClose, "buttonClose");
gtk_widget_show (buttonClose); gtk_widget_show (buttonClose);
gtk_container_add (GTK_CONTAINER (hbuttonbox1), buttonClose); gtk_container_add (GTK_CONTAINER (hbuttonbox1), buttonClose);
gtk_container_set_border_width (GTK_CONTAINER (buttonClose), 4); gtk_container_set_border_width (GTK_CONTAINER (buttonClose), 4);
gtk_widget_set_can_default (buttonClose, TRUE); gtk_widget_set_can_default (buttonClose, TRUE);
g_signal_connect (G_OBJECT (windowMain), "delete_event", g_signal_connect (G_OBJECT (windowMain), "delete_event",
G_CALLBACK (on_window1_delete_event), G_CALLBACK (on_window1_delete_event),
NULL); NULL);
g_signal_connect (G_OBJECT (buttonRefresh), "clicked", g_signal_connect (G_OBJECT (buttonRefresh), "clicked",
G_CALLBACK (on_buttonRefresh_clicked), G_CALLBACK (on_buttonRefresh_clicked),
NULL); NULL);
g_signal_connect (G_OBJECT (buttonConfigure), "clicked",
G_CALLBACK (on_buttonConfigure_clicked),
NULL);
g_signal_connect (G_OBJECT (buttonAbout), "clicked", g_signal_connect (G_OBJECT (buttonAbout), "clicked",
G_CALLBACK (on_buttonAbout_clicked), G_CALLBACK (on_buttonAbout_clicked),
NULL); NULL);
g_signal_connect (G_OBJECT (buttonClose), "clicked", g_signal_connect (G_OBJECT (buttonClose), "clicked",
G_CALLBACK (on_buttonClose_clicked), G_CALLBACK (on_buttonClose_clicked),
NULL); NULL);
g_object_set(G_OBJECT (treeUSB), "has-tooltip", TRUE, NULL); g_object_set(G_OBJECT (treeUSB), "has-tooltip", TRUE, NULL);
g_signal_connect(G_OBJECT (treeUSB), "query-tooltip", G_CALLBACK (query_t ooltip_cb), NULL); g_signal_connect(G_OBJECT (treeUSB), "query-tooltip", G_CALLBACK (query_t ooltip_cb), NULL);
/* create our timer */ /* create our timer */
 End of changes. 3 change blocks. 
11 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)