· KLDP.org · KLDP.net · KLDP Wiki · KLDP BBS ·
Gtk Plus

óÀ½¿¡´Â GIMP¸¦ °³¹ßÇÏ´Â µµ±¸·Î »ç¿ëµÇ¾ú´Âµ¥ Áö±ÝÀº ´Ù¾çÇÑ ÀÀ¿ëÇÁ·Î±×·¥¿¡ »ç¿ëµÇ°í ÀÖ´Ù.


[http]http://gtk.org/tutorial/ Undocumented WidgetsÁß¿¡ Font Selection DialogÀÌ ÀÖ´Ù. ¾Æ·¡¿¡ Font Selection Dialog ¿¹Á¦°¡ ÀÖ´Ù.

#include <gtk/gtk.h>

void font_cb(GtkWidget* w, GtkFontSelectionDialog* fs)
{
  g_print("%s\n", gtk_font_selection_dialog_get_font_name(GTK_FONT_SELECTION_DIALOG(fs)));
}

int main(int argc, char** argv)
{
  GtkWidget* f;

  gtk_init(&argc, &argv);

  f = gtk_font_selection_dialog_new("font sel");
  g_signal_connect(G_OBJECT(f), "destroy", G_CALLBACK(gtk_main_quit), NULL);
  g_signal_connect(G_OBJECT(GTK_FONT_SELECTION_DIALOG(f)->ok_button), "clicked", G_CALLBACK(font_cb), (gpointer)f);
  g_signal_connect_swapped(G_OBJECT(GTK_FONT_SELECTION_DIALOG(f)->cancel_button), "clicked", G_CALLBACK(gtk_widget_destroy), (gpointer)f);

  gtk_widget_show(f);

  gtk_main();
  return 0;
}


[http]http://developer.gnome.org/doc/API/2.0/gtk/index.html ·¹ÆÛ·±½º ¸Å´º¾ó. ÀÌ°ÍÀ» Àß È°¿ëÇÏ·Á¸é ¾î´ÀÁ¤µµ GtkPlus¿¡ ´ëÇÑ ±âº» Áö½ÄÀÌ ÀÖ¾î¾ß µÈ´Ù.



See also:


ID
Password
Join
You plan things that you do not even attempt because of your extreme caution.


sponsored by andamiro
sponsored by cdnetworks
sponsored by HP

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2005-01-11 08:10:45
Processing time 0.0038 sec