X-Git-Url: http://git.dolda2000.com/gitweb/?a=blobdiff_plain;f=common%2Fmakegdesc;h=e8fd6f538795f3deff8db765f71906c8209739c7;hb=a46a6c262dab1d82d42b714cb4d043fc47343b7e;hp=32271fb191aa2b4c7208a5fc5700e72eb2199ffc;hpb=4dda7bfaad18c2d4bf23d7b85641c34a632c3ae6;p=doldaconnect.git diff --git a/common/makegdesc b/common/makegdesc index 32271fb..e8fd6f5 100755 --- a/common/makegdesc +++ b/common/makegdesc @@ -119,6 +119,9 @@ sub printwidgets $widget->{"stock"} || die("Can't have image without stock\n"); $widget->{"size"} || die("Can't have image without size\n"); print "${p}stack[$sl] = gtk_image_new_from_stock(GTK_STOCK_" . $widget->{"stock"} . ", GTK_ICON_SIZE_" . $widget->{"size"} . ");\n"; + } elsif($widget->{"type"} eq "xpmimg") { + $widget->{"data"} || die("Can't have XPM image without data\n"); + print "${p}stack[$sl] = gtk_image_new_from_pixbuf(gdk_pixbuf_new_from_xpm_data((const char **)" . $widget->{"data"} . "));\n"; } elsif($widget->{"type"} eq "lbl") { $widget->{"label"} || $widget->{"markup"} || die("Can't have label without label\n"); if($widget->{"label"}) { @@ -510,6 +513,7 @@ while(<>) if($args{"h"}) { $hfile = IO::File->new($args{"h"}, "w") || die; + $hfile->print("GtkWidget *create_" . $options{"prefix"} . "wnd(void);\n"); printheader $rootwidgets, $hfile; $hfile->close(); }