mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 17:49:52 +01:00
(trunk) get gtk+ client building properly on older compilers. (reported by fixx in ticket #288)
This commit is contained in:
@@ -108,8 +108,6 @@ refresh_pieces (GtkWidget * da, GdkEventExpose * event UNUSED, gpointer gtor)
|
||||
GdkGC **gcs = (GdkGC**) g_object_get_data (G_OBJECT(da), "graphics-contexts");
|
||||
if (gcs == NULL)
|
||||
{
|
||||
gcs = g_new (GdkGC*, N_COLORS+1);
|
||||
|
||||
const GdkColor colors [N_COLORS] = {
|
||||
RGB_2_GDK ( 0, 226, 255 ), /* all */
|
||||
RGB_2_GDK ( 0, 153, 204 ), /* lots */
|
||||
@@ -121,6 +119,8 @@ refresh_pieces (GtkWidget * da, GdkEventExpose * event UNUSED, gpointer gtor)
|
||||
RGB_2_GDK ( 255, 164, 0 ), /* blink - orange */
|
||||
};
|
||||
|
||||
gcs = g_new (GdkGC*, N_COLORS+1);
|
||||
|
||||
for (i=0; i<N_COLORS; ++i) {
|
||||
gcs[i] = gdk_gc_new (da->window);
|
||||
gdk_gc_set_colormap (gcs[i], colormap);
|
||||
|
||||
Reference in New Issue
Block a user