Re: What gives us the macro GSEAL()?
- From: "A. Walton" <awalton ubuntu com>
- To: Grzegorz Kuczyński <gk180984 interia pl>
- Cc: gtk-devel-list gnome org
- Subject: Re: What gives us the macro GSEAL()?
- Date: Sun, 12 Apr 2009 19:47:11 -0400
2009/4/12 A. Walton <awalton ubuntu com>:
> 2009/4/12 Grzegorz Kuczyński <gk180984 interia pl>:
>> Very thanks Regards.
>>
>> Ok I understand the idea, but...
>> how work it? for example:
>> ---------------
>> struct _GtkWindow
>> {
>> GtkBin bin;
>>
>> gchar *GSEAL (title);
>> ---------------
>> void
>> gtk_window_set_title (GtkWindow *window,
>> const gchar *title)
>> {
>> char *new_title;
>>
>> g_return_if_fail (GTK_IS_WINDOW (window));
>>
>> new_title = g_strdup (title);
>> g_free (window->title);
>> window->title = new_title; //eeee I don't know property title!!!
>> ---------------
>> So, when define GSEAL_ENABLE code in gtkwindow.c must change in
>> window->_g_sealed__title = new_title; //??
>
> gtk_window_set_title().
Sorry about that, hit the wrong button (backspace is not return).
gtk_window_set_title() is inside of gtk+ and won't need to change. The
macro is to prevent external applications from doing window->title =
whatever; and instead applications should (and will be forced to use)
gtk_window_set_title().
-A. Walton
>
>> Maybe I can read anywhere for idea macros GSEAL?
>> I don't want write stupidity in Wikibooks. Because I want write analize for
>> struct GtkWindow AND I myself want understand :)
>> ---
>> Grzegorz Kuczyński
>>
>
> -A. Walton.
>
>>
>> ----------------------------------------------------------------------
>> Wirtualne zyczenia wielkanocne? Sprawdz!
>> Kliknij >>> http://link.interia.pl/f2118
>>
>> _______________________________________________
>> gtk-devel-list mailing list
>> gtk-devel-list gnome org
>> http://mail.gnome.org/mailman/listinfo/gtk-devel-list
>>
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]