the start-up process of gtk+ app

Dear Everyone:
 Recently I want to know how the gtk+ 3 choice the x11 backend. But i don't know anything about the process. For example ,here is a "hello world" program:

#include <gtk/gtk.h>
void on_button_clicked(GtkWidget* button, gpointer userdata)
 GtkWidget *dialog;
 dialog = gtk_message_dialog_new(NULL, 

int main(int argc, char* argv[])
 GtkWidget *window, *button;
 gtk_init(&argc, &argv);
 window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
 gtk_window_set_title(GTK_WINDOW(window),"Hello World!");
 button=gtk_button_new_with_label("Hello World!");
   G_CALLBACK(on_button_clicked),(gpointer)"hello ,everyone");
 return FALSE;

I konw we first need to initialize via gtk_init(),then create a window via gtk_window_new.
But now,I want to know the process of the initialization ,the create of window ,etc. And eventually ,to understanding the gtk+ 3 how to call the x11 backend and display the gtk+ 3 application.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]