GLib 2.32.2 released

2012-04-30 Thread Ryan Lortie

GLib 2.32.2 is now available for download at:

 http://download.gnome.org/sources/glib/2.32

b1764abf00bac96e0e93e29fb9715ce75f3583579acac40648e18771d43d6136 
glib-2.32.2.tar.xz



This is a stable point release for the 2.32 series and contains no new 
major features.  There are some minor new features and a few bug fixes. 
 See below.


Overview of changes from GLib 2.32.1 to 2.32.2
==

* GApplication: can now have a NULL application ID

* g_clear_object: fix warnings when using it on C++ (due to lack of
  ability to implicitly cast void*)

* GDBus:
 - add our own implementation of the message bus for use on Windows only
 - fix up a few bugs that use of this bus uncovered in GDBus
 - escape nonce files in dbus addressess (think 'c:\')
 - support initial underscores in dbus codegen namespace (for private)

* Fix misdetection of GNUstep as Cocoa (for the MacOS GSettings backend)

* make sure configure fails if AC_CHECK_ALIGNOF cannot detect the alignment

* GAppInfo: overwrite the DISPLAY only if it is set in the launch context

* glib/tests/date: force US locale running the GDateTime tests

* GSocketControlMessage: Don't warn about unknown messages

* Resources:
 - fix broken use of GVDB on big endian machines
 - set a 'display name' so that pretty file names appear in Gtk CSS
   warning messages

* GMainContext:
 - block child sources when blocking the parent
 - introduce more testcases for child sources

* Translations updates:
 Brazilian Portuguese
 French
 Galician
 Italian
 Lithuanian
 Polish
 Polish
 Serbian
 Simplified Chinese
 Spanish

* Bug fixed:
 619026 avoid warning in gutils.h when using gcc with -Wconversion
 669260 Open/Save dialog hangs waiting for data with libsoup
 671249 GApplication: Allow a null application_id?
 672786 goa-daemon: action in notification doesn't work
 673409 g_resource_lookup_data may return stale data pointer
 674172 glib-2.32.1 misdetects GNUstep as Cocoa
 674345 cssprovider: Make sure to print out file name in css warnings
 674483 broken configure results when cross-compiling with gcc >= 4.5


Thanks to those who contributed to this release

Alexander Larsson
Alexandre Rostovtsev
Aurimas Černius
Benjamin Otte
Bruno Brouard
Christian Persch
Chun-wei Fan
Colin Walters
Cosimo Cecchi
Dan Winship
Daniel Mustieles
David Zeuthen
Debarshi Ray
Fran Diéguez
Hannes Mueller
Jonh Wendell
Kalev Lember
Luca Ferretti
Matthias Clasen
Michael Olbrich
Piotr Drąg
William Hua
Xavier Claessens
Yinghua Wang
Мирослав Николић


Cheers
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: GtkButton bg color

2012-04-30 Thread Steve

> If this doesn't work, you must be using a GTK theme that is overriding
> the coloring of widgets.

Just confirmed that it is in fact the them preventing me from changing
the bg color of the button.

I vaguely recall that when i read the GtkRcStyle and wrote it back
(without changing anything) The theme was no longer applied to the
button, but once again i could not find anything in the documentation
that could explain it.

So, what options do i have to color a button when a theme is preventing
such an action?  Changing themes is NOT an option.


Steve
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: GtkButton bg color

2012-04-30 Thread Steve
On Mon, 30 Apr 2012 08:17:12 -0500
Michael Cronenworth  wrote:

> Steve wrote:
> > Any chance you can provide an example of a button with a background
> > color?
> 
> 
> GdkColor colorGreen = { 0x, 0x90ff, 0xeeff, 0x90ff };
> 
> // without mouse hovering
> gtk_widget_modify_bg( button, GTK_STATE_NORMAL, &colorGreen );
> // with mouse hovering
> gtk_widget_modify_bg( button, GTK_STATE_PRELIGHT, &colorGreen );
> 
> If this doesn't work, you must be using a GTK theme that is overriding
> the coloring of widgets.
> ___
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Must be a theme then, as that code essentially identical to what i
tried in the first place.

So if the problem is a theme how can i force my colors?
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: GtkButton bg color

2012-04-30 Thread Michael Cronenworth
Steve wrote:
> Any chance you can provide an example of a button with a background
> color?


GdkColor colorGreen = { 0x, 0x90ff, 0xeeff, 0x90ff };

// without mouse hovering
gtk_widget_modify_bg( button, GTK_STATE_NORMAL, &colorGreen );
// with mouse hovering
gtk_widget_modify_bg( button, GTK_STATE_PRELIGHT, &colorGreen );

If this doesn't work, you must be using a GTK theme that is overriding
the coloring of widgets.
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: GtkButton bg color

2012-04-30 Thread Dov Grobgeld
The following, though a bit old and referring to perl, might still help:

http://gtk2-perl.sourceforge.net/doc/yapc-2004-perl-gtk2/slides.html

Regards,
Dov

On Sun, Apr 29, 2012 at 20:41, Steve  wrote:
>
> I'm using linux. I've tried dozens of different methods and a few
> examples which seem to suggest that they will change the background but
> noting works.
>
> I scrapped all that code and started over from scratch. I can change
> the fg color with no problems but i can't seem to get anything to work
> with the bg color
>
>
> Any chance you can provide an example of a button with a background
> color?
>
>
> Steve
> ___
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list