Ted's Blog

Happy coding

glade和libglade

Ted posted @ 2008年8月26日 16:45 in 未分类 with tags glade , 3062 阅读

CFLAGS = $(shell pkg-config --cflags gtk+-2.0 libglade-2.0)
LDFLAGS = $(shell pkg-config --libs gtk+-2.0 libglade-2.0)

main: main.o

.c.o:
    $(CC) -g $(CFLAGS) -c $< -o $@

clean:
    rm -f *.o main
这样就很容易产生可执行文件了.

下面是main.c的原文件内容
/***************************************************************************
 *       main.c
 *
 *  Wed Aug 17 12:42:58 2005
 *  Copyright  2005  YangH , GNOME-cn
 *  http://www.gnome-cn.org
 ****************************************************************************/




#include <stdio.h>

#include <gtk/gtk.h>
#include <glade/glade.h>

#define GLADE_FILE "./glade-custom-widget-demo.glade"

GtkWidget* custom_widget_create (gchar *widget_name, gchar *string1, gchar *string2,
                               gint int1, gint int2);

int main (int argc, char **argv)
{
    GtkWidget *window;
    GladeXML *xml;

    gtk_init (&argc, &argv);

    xml = glade_xml_new (GLADE_FILE, NULL, NULL);
    glade_xml_signal_autoconnect (xml);
   
    gtk_main ();

    return 0;
}

GtkWidget* custom_widget_create (gchar *widget_name, gchar *string1, gchar *string2,
                               gint int1, gint int2)
{
    GtkWidget *widget;
    GtkWidget *box, *button;

    box = gtk_vbox_new (FALSE, 4);
    button = gtk_button_new_with_label(g_strdup_printf ("Name: %s", widget_name));
    gtk_box_pack_start (GTK_BOX(box), button, FALSE, FALSE, 4);

    widget = gtk_label_new (g_strdup_printf ("string1: %s", string1));
    gtk_box_pack_start (GTK_BOX(box), widget, FALSE, FALSE, 4);
    widget = gtk_label_new (g_strdup_printf ("string2: %s", string2));
    gtk_box_pack_start (GTK_BOX(box), widget, FALSE, FALSE, 4);

    /* This very important */
    gtk_widget_show_all (box);
   
    return box;
}

Avatar_small
slotomania free 说:
2018年11月17日 20:37

Play the most famous card here it is the very best slotomania free game most player have to like it get slotomania free and create the best score to choose the amazing coins game forever i sure you like it.

Avatar_small
Felicita 说:
2019年12月19日 22:52

I am sure that I will be able to implement this code in the new software that I am trying to design. pro-papers reviews If I does work, will post on this forum to let you guys know about it.

Avatar_small
liam 说:
2019年12月25日 18:43

TS Police Constable Exam Paper 2019 Details of TSLPRB Police Constable Solved Papers www.tslprb.in Telangana State Police Recruitment Board Constable Previous Year Papers, Telangana State Police Constable Old Question Papers TS Police Model Papers, Syllabus and Exam Pattern 2019 Download Telangana Constable Old Question Papers, Download TS Police Constable Exam Model Papers in Telugu, TS Police Constable Question Paper Pdf with answers, Telangana Police Constable Study Material Free Download Telangana State Constable Previous Year Question Papers, TS State Constable Sample Question Papers with solutions, Check Telangana State Police Constable Exam Question Papers, TS Police Constable Practice Question Papers Pdf Download, Telangana Practice Papers 2019 TS Police Constable Mains Question Paper TS Police Constable Paper 2019Telangana Police Constable Exam Model Paper TS Police Constable Exam Question Papers @ tslprb.in

Avatar_small
david 说:
2019年12月28日 14:21

That gives off an impression of being brilliant anyway i am still not very beyond any doubt that I like it. At any rate will look significantly more into it and choose by and by! Royal Green

Avatar_small
james 说:
2019年12月28日 20:05

Thanks so much with this fantastic new web site. I’m very fired up to show it to anyone. It makes me so satisfied your vast understanding and wisdom have a new channel for trying into the world. Midwood Condo

Avatar_small
paul 说:
2019年12月31日 14:37

Thanks for the nice blog. It was very useful for me. I'm happy I found this blog. Thank you for sharing with us,I too always learn something new from your post. salon de fiestas en cancun

Avatar_small
MAHNOOR 说:
2020年5月02日 00:24 There is a lot about alto sites that people don’t know about and I didn’t know about it as well. But then I visited https://fr.altomergepdf.com/about-us and read the content there. I actually learned many interesting things about the site.
Avatar_small
MAHNOOR 说:
2020年5月03日 00:13

TS ZPGPF is the online website by the government to download the Annual Account Slips. The web portal is useful for the employees to check their Annual slips quickly. TS ZPGPF is only available for the government working employee of the Telangana State.Telangana GPF slips It is possible for all Zilla Parishad in the state and has a straightforward user interface. You can download the TS ZPGPF Annual Account Slips of any district you are working with from the website. You need to have the details to Login to your TS ZPGPF account.

Avatar_small
ETHENS 说:
2020年5月26日 15:48

When you use a genuine service, you will be able to provide instructions, share materials and choose the formatting style. 토토사이트

Avatar_small
ETHENS 说:
2020年6月13日 11:44

I am definitely enjoying your website. You definitely have some great insight and great stories. 먹튀사이트

Avatar_small
ETHENS 说:
2020年6月16日 19:35

Buy weed online at 420 Kush Supplier. We seek to provide the best cannabis mail order service in USA and the World with more than 14 years of experience in the marijuana industry. With our experience comes strict standards for the quality of our craft flower, edibles and concentrates. You can be assured you are receiving some of the highest quality cannabis products available. Buy Kush Online

Avatar_small
ETHENS 说:
2020年9月23日 18:39

Interestingly you write, I will address you'll find exciting and interesting things on similar topics. https://caldwells.com/interior-doors/caldwells-signature-door-series

Avatar_small
selling merchant ser 说:
2021年7月16日 22:20

Just pure classic stuff from you here. I have never seen such a brilliantly written article in a long time. I am thankful to you that you produced this! selling merchant services

Avatar_small
no excuses runner 说:
2021年7月19日 20:17

I'd state which this can be a an excellent publish of the excellent individual, i am very happy to observe this particular. astm level 3

Avatar_small
asdzxc 说:
2021年9月03日 20:12

Feetlu Foldable Yoga mat is designed easy to carry and easy to storage for multi-purpose yoga exercise. Most notably, the gripping property of the mat allows its surface to be slip-free throughout all practices. Feetlu Foldable Exercise Mat- 1/4 Inch Thick Anti-Tear Pilates Yoga Mat Easy to Fold for All Purpose Beginners Women Men, Yoga Pilates, Floor Workout Home Gym Unfold Size 72 x 24 Inch

Avatar_small
asdzxc 说:
2021年9月04日 00:14

As a certified company with a deposit of 100 million won, it has the advantage of being able to use it safely. 토토

Avatar_small
asdzxc 说:
2021年9月05日 00:28

Tunasbola adalah situs resmi Login SBOBET, judi SBOBET Bola & Casino, agen SBOBET88 dengan minimal deposit 50ribu dan bonus terbesar di indonesia sbobet

Avatar_small
asdzxc 说:
2021年9月05日 13:26

Enjoy effective Pest Control Services in all London areas by Archers Pest Control. Our pest treatments are guaranteed! Contact us today or book online your emergency pest exterminator. pest control Enfield

Avatar_small
no excuses runner 说:
2021年9月06日 15:07

The best IQOS UAE and Heets Dubai online mall. IQOS Dubai store provides Heets flavors Turquoise, Yellow label, Bronze, Amber, Purple Wave, Silver, Sienna and etc. Devices: IQOS 3, IQOS Multi, IQOS Lil Solid in Dubai, Abu Dhabi and UAE for good price. Free Delivery over AED600 order. Cash on Delivery available. Heets Dubai

Avatar_small
no excuses runner 说:
2021年9月07日 14:01

From a small company site to large online catalogs and stores - your future site is in good hands. Free training on how to update CMS quickly and easily. A community of professional developers with stable support and various plug-ins that are already available. изработка на сайт

Avatar_small
no excuses runner 说:
2021年9月07日 21:03

Reptiles Exotiques. All, All Animals, Exclusive Exotics, Geckos, LIzards, Mammals, Snakes, Tegus, Tortoises, Turtles, Venomous. Search for: Adult Pancake Tortoise

Avatar_small
фототапети 说:
2021年9月10日 18:46

Разнообразие, фототапети, картини, ръчно рисувани, акрилно стъкло, декоратвини паравани, скреч карти, рисуване по номера, качество, цена, най-добра цена фототапети

Avatar_small
no excuses runner 说:
2021年9月11日 15:56

Visit our blog to learn more about fleas & ticks , natural remedies to get rid of them and simple life hacks for pet owners to keep their beloved fur babies happy and healthy. DEWELPRO

Avatar_small
no excuses runner 说:
2021年9月11日 21:31

Our powerful website hosting services will not only help you achieve your overall website goals, but will also provide you with the confidence you need in knowing that you are partnered with a reliable and secure website hosting platform. private cloud hosting

Avatar_small
aспално бельо 说:
2021年9月12日 18:16

Here you will also find blankets, blankets, bedspreads, duvets, bathrobes, towels and beach towels at the best price. Delivery from 1 to 3 working days. New models every week. Prices directly from manufacturers of bed linen. Bed linen 2021 - high quality home textiles! спално бельо

Avatar_small
aспално бельо 说:
2021年9月19日 04:35

enamel badges made to order, Badge Creation make all types of badges and lapel pins, enamel and printed. Call us on 0845 299 6550 https://www.badgecreation.co.uk

Avatar_small
aспално бельо 说:
2021年9月25日 04:44

SLOTXO PGSLOT AMBPOKER ASKMEBET GAMATRON MICROGAMING JILI GIOCOPLUS collects the most game camps With fast, safe service, play anywhere, anytime. Think of customer service as number one. SUPERSLOT888, a new online slot that you must try. If anyone is interested in baccarat, we would like to present Slotxogame88 with Luckywinauto. ซุปเปอร์สสล็อต

Avatar_small
dark web/deep web/d 说:
2022年8月04日 18:50

There is no header to indicate which domain or page is linked to. Each link is invisible until you click on it, making it impossible to track or scan for viruses or harmful software.   dark web links

Avatar_small
dark web/deep web/d 说:
2022年8月04日 19:33

There are many different reasons why these hackers choose to target websites that have a JavaScript code. One of the primary reasons is because these sites often contain many graphics that many users do not want to open.   deep web

Avatar_small
dark web/deep web/d 说:
2022年8月04日 19:49

Hackers can easily create new sites to steal your identity, and you could unknowingly become a victim of scams and other criminal activity. dark web links

Avatar_small
dark web/deep web/d 说:
2022年8月04日 20:12

I am sure that some of you are saying; well I know plenty of individuals who frequent the dark web, they are just normal users. Others argue that such links lead only to criminals, drug dealers, hackers, and identity thieves, well that's just not true. I know plenty of people who visit the dark web, and also live in cyberspace as well.   dark web sites

Avatar_small
dark web/deep web/d 说:
2022年8月04日 20:27

This way, you can get around the dangerous individuals and dangers that may pop up while you are looking at links. I use both the Mac interface and Windows interface to surf the net, and the privacy that you get with the VPN service is worth the price you pay.  dark web

Avatar_small
dark web/deep web/d 说:
2022年8月04日 20:42

The next thing that Chia teaches you in his course, and that you will find helpful in your own affiliate marketing business, is how to choose the right affiliate programs.   work from home jobs

Avatar_small
dark web/deep web/d 说:
2022年8月04日 20:58

One of the top affiliate marketing success stories of the year was Fathead, which launched an email series that targeted obese people looking to lose weight.   affiliate marketing success

Avatar_small
Fastwork 说:
2023年1月09日 01:51

Thank a lot. You have done excellent job. I enjoyed your blog . Nice efforts comments Fastwork

Avatar_small
Natrium Pentobarbita 说:
2023年2月19日 00:27

Through this post, I know that your good knowledge in playing with all the pieces was very helpful. I notify that this is the first place where I find issues I've been searching for. You have a clever yet attractive way of writing. Natrium Pentobarbital Kaufen

Avatar_small
human growth hormone 说:
2023年3月10日 07:39

I’m happy I located this blog! From time to time, students want to cognitive the keys of productive literary essays composing. Your first-class knowledge about this good post can become a proper basis for such people. nice one somatropin sale

Avatar_small
tech 说:
2023年12月06日 00:14

With so many books and articles coming up to give gateway to make-money-online field and confusing reader even more on the actual way of earning money, UFABETโปรโมชั่นเว็บบอล

Avatar_small
jsimitseo 说:
2024年1月31日 20:42

I utilize fundamentally unrivaled textures : you will find these items by:  concierge doctor naples


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter