All Boards GTK Manually

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

All Boards GTK Manually

All Boards GTK Manually

You can create GTK applications manually—this is just like creating Graphics Java Applications. It uses a similar layout idea!

Copy this example and save as helloworld.c:

/* example-start helloworld helloworld.c */

#include <gtk/gtk.h>

/* This is a callback function. The data arguments are ignored
* in this example. More on callbacks below. */
void hello( GtkWidget *widget, gpointer   data )
{
   g_print ("Hello World\n");
}

gint delete_event( GtkWidget *widget, GdkEvent  *event,  gpointer   data )
{
   /* If you return FALSE in the "delete_event" signal handler,
    * GTK will emit the "destroy" signal. Returning TRUE means
    * you don't want the window to be destroyed.
    * This is useful for popping up 'are you sure you want to quit?'
    * type dialogs. */

   g_print ("delete event occurred\n");

   /* Change TRUE to FALSE and the main window will be destroyed with
    * a "delete_event". */

   return(TRUE);
}

/* Another callback */
void destroy( GtkWidget *widget, gpointer   data )
{
   gtk_main_quit();
}

int main( int   argc, char *argv[] )
{
   /* GtkWidget is the storage type for widgets */
   GtkWidget *window;
   GtkWidget *button;
   
   /* This is called in all GTK applications. Arguments are parsed
    * from the command line and are returned to the application. */
   gtk_init(&argc, &argv);
   
   /* create a new window */
   window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
   
   /* When the window is given the "delete_event" signal (this is given
    * by the window manager, usually by the "close" option, or on the
    * titlebar), we ask it to call the delete_event () function
    * as defined above. The data passed to the callback
    * function is NULL and is ignored in the callback function. */
   gtk_signal_connect (GTK_OBJECT (window), "delete_event",
                       GTK_SIGNAL_FUNC (delete_event), NULL);
   
   /* Here we connect the "destroy" event to a signal handler.  
    * This event occurs when we call gtk_widget_destroy() on the window,
    * or if we return FALSE in the "delete_event" callback. */
   gtk_signal_connect (GTK_OBJECT (window), "destroy",
                       GTK_SIGNAL_FUNC (destroy), NULL);
   
   /* Sets the border width of the window. */
   gtk_container_set_border_width (GTK_CONTAINER (window), 10);
   
   /* Creates a new button with the label "Hello World". */
   button = gtk_button_new_with_label ("Hello World");
   
   /* When the button receives the "clicked" signal, it will call the
    * function hello() passing it NULL as its argument.  The hello()
    * function is defined above. */
   gtk_signal_connect (GTK_OBJECT (button), "clicked",
                       GTK_SIGNAL_FUNC (hello), NULL);
   
   /* This will cause the window to be destroyed by calling
    * gtk_widget_destroy(window) when "clicked".  Again, the destroy
    * signal could come from here, or the window manager. */
   gtk_signal_connect_object (GTK_OBJECT (button), "clicked",
                              GTK_SIGNAL_FUNC (gtk_widget_destroy),
                              GTK_OBJECT (window));
   
   /* This packs the button into the window (a gtk container). */
   gtk_container_add (GTK_CONTAINER (window), button);
   
   /* The final step is to display this newly created widget. */
   gtk_widget_show (button);
   
   /* and the window */
   gtk_widget_show (window);
   
   /* All GTK applications must have a gtk_main(). Control ends here
    * and waits for an event to occur (like a key press or
    * mouse event). */
   gtk_main ();
   
   return(0);
}
/* example-end */


コメント

Hi,

What's cross compiler that need for iMX28 package?

%3CLINGO-SUB%20id%3D%22lingo-sub-1103077%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E3%81%99%E3%81%B9%E3%81%A6%E3%81%AE%E3%83%9C%E3%83%BC%E3%83%89GTK%E6%89%8B%E5%8B%95%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1103077%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3Dutf-8%22%20%2F%26gt%3B%0A%3CP%3EGTK%20%E3%82%A2%E3%83%97%E3%83%AA%E3%82%B1%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3%E3%82%92%E6%89%8B%E5%8B%95%E3%81%A7%E4%BD%9C%E6%88%90%E3%81%99%E3%82%8B%E3%81%93%E3%81%A8%E3%82%82%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%99%E3%81%8C%E3%80%81%E3%81%93%E3%82%8C%E3%81%AF%E3%82%B0%E3%83%A9%E3%83%95%E3%82%A3%E3%83%83%E3%82%AF%E3%82%B9%20Java%20%E3%82%A2%E3%83%97%E3%83%AA%E3%82%B1%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3%E3%82%92%E4%BD%9C%E6%88%90%E3%81%99%E3%82%8B%E3%81%AE%E3%81%A8%E5%90%8C%E3%81%98%E3%81%A7%E3%81%99%E3%80%82%E5%90%8C%E6%A7%98%E3%81%AE%E3%83%AC%E3%82%A4%E3%82%A2%E3%82%A6%E3%83%88%E3%81%AE%E3%82%A2%E3%82%A4%E3%83%87%E3%82%A2%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%97%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99!%3C%2FP%3E%3CP%3E%E3%81%93%E3%81%AE%E4%BE%8B%E3%82%92%E3%82%B3%E3%83%94%E3%83%BC%E3%81%97%E3%81%A6%E3%80%81helloworld.c%20%E3%81%A8%E3%81%97%E3%81%A6%E4%BF%9D%E5%AD%98%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3E%2F*%20example-start%20helloworld%20helloworld.c*%2F%0A%0A%23include%20%26lt%3B%20gtk%2Fgtk.h%26gt%3B%2F*%20%E3%81%93%E3%82%8C%E3%81%AF%E3%82%B3%E3%83%BC%E3%83%AB%E3%83%90%E3%83%83%E3%82%AF%E9%96%A2%E6%95%B0%E3%81%A7%E3%81%99%E3%80%82%E3%83%87%E3%83%BC%E3%82%BF%E5%BC%95%E6%95%B0%E3%81%AF%E7%84%A1%E8%A6%96%E3%81%95%E3%82%8C%E3%81%BE%E3%81%99%0A%E3%81%93%E3%81%AE%E4%BE%8B%E3%81%A7%E3%81%AF%20*%20%E3%81%A7%E3%81%99%E3%80%82%E3%82%B3%E3%83%BC%E3%83%AB%E3%83%90%E3%83%83%E3%82%AF%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6%E3%81%AF%E3%80%81%E4%BB%A5%E4%B8%8B%E3%81%A7%E8%A9%B3%E3%81%97%E3%81%8F%E8%AA%AC%E6%98%8E%E3%81%97%E3%81%BE%E3%81%99%E3%80%82*%2F%0Avoid%20hello(%20GtkWidget%20*%E3%82%A6%E3%82%A3%E3%82%B8%E3%82%A7%E3%83%83%E3%83%88%2C%20gpointer%20%E3%83%87%E3%83%BC%E3%82%BF%20)%0A%7B%0A%26nbsp%3B%26nbsp%3B%20g_print%20(%22Hello%20World%5Cn%22)%3B%0A%7D%0A%0Agint%20delete_event(%20GtkWidget%20*widget%2C%20GdkEvent%20*event%2C%20gpointer%20data%20)%0A%7B%0A%26nbsp%3B%26nbsp%3B%20%2F*%20%22delete_event%22%20%E3%82%B7%E3%82%B0%E3%83%8A%E3%83%AB%E3%83%8F%E3%83%B3%E3%83%89%E3%83%A9%E3%81%A7%20FALSE%20%E3%82%92%E8%BF%94%E3%81%99%E3%81%A8%E3%80%81%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%20*%20GTK%20%E3%81%AF%20%22destroy%22%20%E4%BF%A1%E5%8F%B7%E3%82%92%E7%99%BA%E3%81%97%E3%81%BE%E3%81%99%E3%80%82TRUE%20%E3%82%92%E8%BF%94%E3%81%99%E3%81%A8%E3%81%AF%E3%80%81%E6%AC%A1%E3%81%AE%E3%81%93%E3%81%A8%E3%82%92%E6%84%8F%E5%91%B3%E3%81%97%E3%81%BE%E3%81%99%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%20*%E3%82%A6%E3%82%A3%E3%83%B3%E3%83%89%E3%82%A6%E3%81%8C%E5%A3%8A%E3%82%8C%E3%82%8B%E3%81%93%E3%81%A8%E3%82%92%E6%9C%9B%E3%81%BE%E3%81%AA%E3%81%84%E3%81%A7%E3%81%8F%E3%81%A0%E3%81%95%E3%81%84%E3%80%82%E2%80%BB%E3%80%8C%E6%9C%AC%E5%BD%93%E3%81%AB%E8%BE%9E%E3%82%81%E3%81%BE%E3%81%99%E3%81%8B%3F%E3%80%8D%E3%81%A8%E3%83%9D%E3%83%83%E3%83%97%E3%82%A2%E3%83%83%E3%83%97%E3%81%99%E3%82%8B%E3%81%AE%E3%81%AB%E4%BE%BF%E5%88%A9%E3%81%A7%E3%81%99%E3%80%82%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%20*%E3%82%BF%E3%82%A4%E3%83%97%E3%81%AE%E3%83%80%E3%82%A4%E3%82%A2%E3%83%AD%E3%82%B0%E3%80%82*%2F%0A%0Ag_print%20(%22%E5%89%8A%E9%99%A4%E3%82%A4%E3%83%99%E3%83%B3%E3%83%88%E3%81%8C%E7%99%BA%E7%94%9F%E3%81%97%E3%81%BE%E3%81%97%E3%81%9F%5Cn%22)%3B%0A%0A%2F*%20TRUE%20%E3%82%92%20FALSE%20%E3%81%AB%E5%A4%89%E6%9B%B4%E3%81%99%E3%82%8B%E3%81%A8%E3%80%81%E3%83%A1%E3%82%A4%E3%83%B3%E3%82%A6%E3%82%A3%E3%83%B3%E3%83%89%E3%82%A6%E3%81%AF%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%20*%20%E3%80%8Cdelete_event%E3%80%8D%E3%81%A7%E3%81%99%E3%80%82*%2F%0A%0Areturn(TRUE)%3B%0A%7D%0A%0A%2F*%20%E5%88%A5%E3%81%AE%E3%82%B3%E3%83%BC%E3%83%AB%E3%83%90%E3%83%83%E3%82%AF%20*%2F%0Avoid%20destroy(%20GtkWidget%20*%E3%82%A6%E3%82%A3%E3%82%B8%E3%82%A7%E3%83%83%E3%83%88%2C%20gpointer%20%E3%83%87%E3%83%BC%E3%82%BF%20)%0A%7B%0A%26nbsp%3B%26nbsp%3B%20gtk_main_quit()%3B%0A%7D%0A%0Aint%20main(%20int%20argc%2C%20char%20*argv%5B%5D%20)%0A%7B%0A%26nbsp%3B%26nbsp%3B%20%2F*%20GtkWidget%20%E3%81%AF%E3%82%A6%E3%82%A3%E3%82%B8%E3%82%A7%E3%83%83%E3%83%88%E3%81%AE%E3%82%B9%E3%83%88%E3%83%AC%E3%83%BC%E3%82%B8%E3%82%BF%E3%82%A4%E3%83%97%E3%81%A7%E3%81%99%20*%2F%0A%26nbsp%3B%26nbsp%3B%20GtkWidget%20*%E3%82%A6%E3%82%A3%E3%83%B3%E3%83%89%E3%82%A6%3B%0A%26nbsp%3B%26nbsp%3B%20Gtk%E3%82%A6%E3%82%A3%E3%82%B8%E3%82%A7%E3%83%83%E3%83%88%20*%E3%83%9C%E3%82%BF%E3%83%B3%3B%0A%26nbsp%3B%26nbsp%3B%20%0A%2F*%20%E3%81%93%E3%82%8C%E3%81%AF%E3%81%99%E3%81%B9%E3%81%A6%E3%81%AE%20GTK%20%E3%82%A2%E3%83%97%E3%83%AA%E3%82%B1%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3%E3%81%A7%E5%91%BC%E3%81%B3%E5%87%BA%E3%81%95%E3%82%8C%E3%81%BE%E3%81%99%E3%80%82%E5%BC%95%E6%95%B0%E3%81%8C%E8%A7%A3%E6%9E%90%E3%81%95%E3%82%8C%E3%81%BE%E3%81%99%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%20*%20%E3%82%92%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89%E3%83%A9%E3%82%A4%E3%83%B3%E3%81%8B%E3%82%89%E5%91%BC%E3%81%B3%E5%87%BA%E3%81%97%E3%80%81%E3%82%A2%E3%83%97%E3%83%AA%E3%82%B1%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3%E3%81%AB%E8%BF%94%E3%81%95%E3%82%8C%E3%81%BE%E3%81%99%E3%80%82*%2F%0A%26nbsp%3B%26nbsp%3B%20gtk_init(%26amp%3Bargc%2C%20%26amp%3Bargv)%3B%0A%26nbsp%3B%26nbsp%3B%20%0A%2F*%20%E6%96%B0%E3%81%97%E3%81%84%E3%82%A6%E3%82%A3%E3%83%B3%E3%83%89%E3%82%A6%E3%82%92%E4%BD%9C%E6%88%90%20*%2F%0A%26nbsp%3B%26nbsp%3B%20%E3%82%A6%E3%82%A3%E3%83%B3%E3%83%89%E3%82%A6%20%3D%20gtk_window_new%20(GTK_WINDOW_TOPLEVEL)%3B%0A%26nbsp%3B%26nbsp%3B%20%0A%2F*%20%E3%82%A6%E3%82%A3%E3%83%B3%E3%83%89%E3%82%A6%E3%81%AB%20%22delete_event%22%20%E4%BF%A1%E5%8F%B7%E3%81%8C%E4%B8%8E%E3%81%88%E3%82%89%E3%82%8C%E3%81%9F%E3%81%A8%E3%81%8D%20(%E3%81%93%E3%82%8C%E3%81%AF%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%20*%20%E3%82%A6%E3%82%A3%E3%83%B3%E3%83%89%E3%82%A6%E3%83%9E%E3%83%8D%E3%83%BC%E3%82%B8%E3%83%A3%E3%83%BC%E3%80%81%E9%80%9A%E5%B8%B8%E3%81%AF%E3%80%8C%E9%96%89%E3%81%98%E3%82%8B%E3%80%8D%E3%82%AA%E3%83%97%E3%82%B7%E3%83%A7%E3%83%B3%E3%80%81%E3%81%BE%E3%81%9F%E3%81%AF%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%20*%20titlebar)%20%E3%81%AB%E3%80%81delete_event()%20%E9%96%A2%E6%95%B0%E3%82%92%E5%91%BC%E3%81%B3%E5%87%BA%E3%81%99%E3%82%88%E3%81%86%E3%81%AB%E4%BE%9D%E9%A0%BC%E3%81%97%E3%81%BE%E3%81%99%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%20*%20%E4%B8%8A%E8%A8%98%E3%81%A7%E5%AE%9A%E7%BE%A9%E3%81%97%E3%81%9F%E3%81%A8%E3%81%8A%E3%82%8A%E3%81%A7%E3%81%99%E3%80%82%E3%82%B3%E3%83%BC%E3%83%AB%E3%83%90%E3%83%83%E3%82%AF%E3%81%AB%E6%B8%A1%E3%81%95%E3%82%8C%E3%82%8B%E3%83%87%E3%83%BC%E3%82%BF%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%20*%20%E9%96%A2%E6%95%B0%E3%81%AF%20NULL%20%E3%81%A7%E3%81%82%E3%82%8A%E3%80%81%E3%82%B3%E3%83%BC%E3%83%AB%E3%83%90%E3%83%83%E3%82%AF%E9%96%A2%E6%95%B0%E3%81%A7%E3%81%AF%E7%84%A1%E8%A6%96%E3%81%95%E3%82%8C%E3%81%BE%E3%81%99%E3%80%82*%2F%0A%26nbsp%3B%26nbsp%3B%20gtk_signal_connect(GTK_OBJECT(%E3%82%A6%E3%82%A3%E3%83%B3%E3%83%89%E3%82%A6)%E3%80%81%E3%80%8Cdelete_event%E3%80%8D%E3%80%81%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20GTK_SIGNAL_FUNC%20(delete_event%2C%20NULL)%3B%0A%26nbsp%3B%26nbsp%3B%20%0A%2F*%20%E3%81%93%E3%81%93%E3%81%A7%E3%81%AF%E3%80%81%22destroy%22%20%E3%82%A4%E3%83%99%E3%83%B3%E3%83%88%E3%82%92%E3%82%B7%E3%82%B0%E3%83%8A%E3%83%AB%E3%83%8F%E3%83%B3%E3%83%89%E3%83%A9%E3%81%AB%E6%8E%A5%E7%B6%9A%E3%81%97%E3%81%BE%E3%81%99%E3%80%82*%20%E3%81%93%E3%81%AE%E3%82%A4%E3%83%99%E3%83%B3%E3%83%88%E3%81%AF%E3%80%81%E3%82%A6%E3%82%A3%E3%83%B3%E3%83%89%E3%82%A6%E4%B8%8A%E3%81%A7%20gtk_widget_destroy()%20%E3%82%92%E5%91%BC%E3%81%B3%E5%87%BA%E3%81%97%E3%81%9F%E3%81%A8%E3%81%8D%E3%81%AB%E7%99%BA%E7%94%9F%E3%81%97%E3%81%BE%E3%81%99%E3%80%82%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%20*%20%E3%81%BE%E3%81%9F%E3%81%AF%E3%80%81%22delete_event%22%20%E3%82%B3%E3%83%BC%E3%83%AB%E3%83%90%E3%83%83%E3%82%AF%E3%81%A7%20FALSE%20%E3%82%92%E8%BF%94%E3%81%99%E5%A0%B4%E5%90%88%E3%80%82*%2F%0A%26nbsp%3B%26nbsp%3B%20gtk_signal_connect(GTK_OBJECT(%E3%82%A6%E3%82%A3%E3%83%B3%E3%83%89%E3%82%A6)%E3%80%81%E3%80%8C%E7%A0%B4%E5%A3%8A%E3%80%8D%E3%80%81%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20GTK_SIGNAL_FUNC%20(%E7%A0%B4%E6%A3%84)%E3%80%81NULL)%3B%0A%26nbsp%3B%26nbsp%3B%20%0A%2F*%20%E3%82%A6%E3%82%A3%E3%83%B3%E3%83%89%E3%82%A6%E3%81%AE%E5%A2%83%E7%95%8C%E7%B7%9A%E3%81%AE%E5%B9%85%E3%82%92%E8%A8%AD%E5%AE%9A%E3%81%97%E3%81%BE%E3%81%99%E3%80%82*%2F%0A%26nbsp%3B%26nbsp%3B%20gtk_container_set_border_width(GTK_CONTAINER(%E3%82%A6%E3%82%A3%E3%83%B3%E3%83%89%E3%82%A6)%E3%80%8110)%3B%0A%26nbsp%3B%26nbsp%3B%20%0A%2F*%20%E3%80%8CHello%20World%E3%80%8D%E3%81%A8%E3%81%84%E3%81%86%E3%83%A9%E3%83%99%E3%83%AB%E3%82%92%E6%8C%81%E3%81%A4%E6%96%B0%E3%81%97%E3%81%84%E3%83%9C%E3%82%BF%E3%83%B3%E3%82%92%E4%BD%9C%E6%88%90%E3%81%97%E3%81%BE%E3%81%99%E3%80%82*%2F%0A%26nbsp%3B%26nbsp%3B%20%E3%83%9C%E3%82%BF%E3%83%B3%20%3D%20gtk_button_new_with_label%20(%22Hello%20World%22)%3B%0A%26nbsp%3B%26nbsp%3B%20%0A%2F*%20%E3%83%9C%E3%82%BF%E3%83%B3%E3%81%8C%E3%80%8C%E3%82%AF%E3%83%AA%E3%83%83%E3%82%AF%E3%80%8D%E4%BF%A1%E5%8F%B7%E3%82%92%E5%8F%97%E4%BF%A1%E3%81%99%E3%82%8B%E3%81%A8%E3%80%81%E3%83%9C%E3%82%BF%E3%83%B3%E3%81%AF%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%20*%20function%20hello()%20%E5%BC%95%E6%95%B0%E3%81%A8%E3%81%97%E3%81%A6%20NULL%20%E3%82%92%E6%B8%A1%E3%81%97%E3%81%BE%E3%81%99%E3%80%82hello()%20%E3%81%AE%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%20*%E6%A9%9F%E8%83%BD%E3%81%AF%E4%B8%8A%E8%A8%98%E3%81%A7%E5%AE%9A%E7%BE%A9%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%81%BE%E3%81%99%E3%80%82*%2F%0A%26nbsp%3B%26nbsp%3B%20gtk_signal_connect(GTK_OBJECT(%E3%83%9C%E3%82%BF%E3%83%B3)%E3%80%81%E3%80%8C%E3%82%AF%E3%83%AA%E3%83%83%E3%82%AF%E3%80%8D%E3%80%81%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20GTK_SIGNAL_FUNC%20(hello)%2C%20NULL)%3B%0A%26nbsp%3B%26nbsp%3B%20%0A%2F*%20%E3%81%93%E3%82%8C%E3%81%AB%E3%82%88%E3%82%8A%E3%80%81%E3%82%A6%E3%82%A3%E3%83%B3%E3%83%89%E3%82%A6%E3%81%8C%E7%A0%B4%E5%A3%8A%E3%81%95%E3%82%8C%E3%81%BE%E3%81%99%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%E2%80%BB%E3%80%8C%E3%82%AF%E3%83%AA%E3%83%83%E3%82%AF%E3%80%8D%E3%81%97%E3%81%9F%E5%A0%B4%E5%90%88%E3%81%AEgtk_widget_destroy(%E3%82%A6%E3%82%A3%E3%83%B3%E3%83%89%E3%82%A6)%E3%80%82%20%E5%86%8D%E3%81%B3%E3%80%81%E7%A0%B4%E5%A3%8A%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%20*%E4%BF%A1%E5%8F%B7%E3%81%AF%E3%81%93%E3%81%93%E3%81%8B%E3%82%89%E6%9D%A5%E3%82%8B%E3%81%8B%E3%80%81%E3%82%A6%E3%82%A3%E3%83%B3%E3%83%89%E3%82%A6%E3%83%9E%E3%83%8D%E3%83%BC%E3%82%B8%E3%83%A3%E3%83%BC%E3%81%8B%E3%82%89%E6%9D%A5%E3%82%8B%E3%81%93%E3%81%A8%E3%81%8C%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%99%E3%80%82*%2F%0A%26nbsp%3B%26nbsp%3B%20gtk_signal_connect_object(GTK_OBJECT(%E3%83%9C%E3%82%BF%E3%83%B3)%E3%80%81%E3%80%8C%E3%82%AF%E3%83%AA%E3%83%83%E3%82%AF%E3%80%8D%E3%80%81%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20GTK_SIGNAL_FUNC%20(gtk_widget_destroy)%E3%80%81%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20GTK_OBJECT(%E3%82%A6%E3%82%A3%E3%83%B3%E3%83%89%E3%82%A6))%3B%0A%26nbsp%3B%26nbsp%3B%20%0A%2F*%20%E3%81%93%E3%82%8C%E3%81%AB%E3%82%88%E3%82%8A%E3%80%81%E3%83%9C%E3%82%BF%E3%83%B3%E3%81%8C%E3%82%A6%E3%82%A3%E3%83%B3%E3%83%89%E3%82%A6%20(gtk%20%E3%82%B3%E3%83%B3%E3%83%86%E3%83%8A)%20%E3%81%AB%E3%83%91%E3%83%83%E3%82%AF%E3%81%95%E3%82%8C%E3%81%BE%E3%81%99%E3%80%82*%2F%0A%26nbsp%3B%26nbsp%3B%20gtk_container_add(GTK_CONTAINER(%E3%82%A6%E3%82%A3%E3%83%B3%E3%83%89%E3%82%A6)%E3%80%81%E3%83%9C%E3%82%BF%E3%83%B3)%3B%0A%26nbsp%3B%26nbsp%3B%20%0A%2F*%20%E6%9C%80%E5%BE%8C%E3%81%AE%E3%82%B9%E3%83%86%E3%83%83%E3%83%97%E3%81%AF%E3%80%81%E3%81%93%E3%81%AE%E6%96%B0%E3%81%97%E3%81%8F%E4%BD%9C%E6%88%90%E3%81%95%E3%82%8C%E3%81%9F%E3%82%A6%E3%82%A3%E3%82%B8%E3%82%A7%E3%83%83%E3%83%88%E3%82%92%E8%A1%A8%E7%A4%BA%E3%81%99%E3%82%8B%E3%81%93%E3%81%A8%E3%81%A7%E3%81%99%E3%80%82*%2F%0A%26nbsp%3B%26nbsp%3B%20gtk_widget_show(%E3%83%9C%E3%82%BF%E3%83%B3)%3B%0A%26nbsp%3B%26nbsp%3B%20%0A%2F*%20%E3%81%A8%E3%82%A6%E3%82%A3%E3%83%B3%E3%83%89%E3%82%A6%20*%2F%0A%26nbsp%3B%26nbsp%3B%20gtk_widget_show(%E3%82%A6%E3%82%A3%E3%83%B3%E3%83%89%E3%82%A6)%3B%0A%26nbsp%3B%26nbsp%3B%20%0A%2F*%20%E3%81%99%E3%81%B9%E3%81%A6%E3%81%AE%20GTK%20%E3%82%A2%E3%83%97%E3%83%AA%E3%82%B1%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3%E3%81%AF%20gtk_main()%20%E3%82%92%E6%8C%81%E3%81%A4%E5%BF%85%E8%A6%81%E3%81%8C%E3%81%82%E3%82%8A%E3%81%BE%E3%81%99%E3%80%82%E5%88%B6%E5%BE%A1%E3%81%AF%E3%81%93%E3%81%93%E3%81%A7%E7%B5%82%E4%BA%86%E3%81%97%E3%81%BE%E3%81%99%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%20*%20%E3%81%A7%E3%80%81%E3%82%A4%E3%83%99%E3%83%B3%E3%83%88%E3%81%8C%E7%99%BA%E7%94%9F%E3%81%99%E3%82%8B%E3%81%AE%E3%82%92%E5%BE%85%E3%81%A1%E3%81%BE%E3%81%99%20(%E3%82%AD%E3%83%BC%E3%81%AE%E6%8A%BC%E4%B8%8B%E3%82%84%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%20*%20%E3%83%9E%E3%82%A6%E3%82%B9%E3%82%A4%E3%83%99%E3%83%B3%E3%83%88)%E3%80%82*%2F%0A%26nbsp%3B%26nbsp%3B%20gtk_main%20()%3B%0A%26nbsp%3B%26nbsp%3B%20%0A%E6%88%BB%E3%82%8B(0)%3B%0A%7D%0A%2F*%20example-end%20*%2F%0A%3C%2FPRE%3E%3CP%3E%3CSPAN%20class%3D%22mce_paste_marker%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
評価なし
バージョン履歴
最終更新日:
‎09-10-2020 01:47 AM
更新者: