Mercurial > pidgin
comparison src/dialogs.c @ 675:b77c039c9d3d
[gaim-migrate @ 685]
bgcolor dialog closes without errors now
committer: Tailor Script <tailor@pidgin.im>
| author | Eric Warmenhoven <eric@warmenhoven.org> |
|---|---|
| date | Mon, 14 Aug 2000 16:58:32 +0000 |
| parents | 71ea550c22ac |
| children | 9c49d2456773 |
comparison
equal
deleted
inserted
replaced
| 674:b68c592829a6 | 675:b77c039c9d3d |
|---|---|
| 2368 green = ((guint16)(color[1]*65535))>>8; | 2368 green = ((guint16)(color[1]*65535))>>8; |
| 2369 blue = ((guint16)(color[2]*65535))>>8; | 2369 blue = ((guint16)(color[2]*65535))>>8; |
| 2370 | 2370 |
| 2371 fgcolor = ((red & 0xff) << 16) | ((green & 0xff) < 8) | (blue & 0xff); | 2371 fgcolor = ((red & 0xff) << 16) | ((green & 0xff) < 8) | (blue & 0xff); |
| 2372 } else { | 2372 } else { |
| 2373 gtk_color_selection_get_color(GTK_COLOR_SELECTION(bgcseld), color); | 2373 gtk_color_selection_get_color(GTK_COLOR_SELECTION(GTK_COLOR_SELECTION_DIALOG(bgcseld)->colorsel), color); |
| 2374 destroy_colorsel(NULL, (void *)2); | 2374 destroy_colorsel(NULL, (void *)0); |
| 2375 | 2375 |
| 2376 red = ((guint16)(color[0]*65535))>>8; | 2376 red = ((guint16)(color[0]*65535))>>8; |
| 2377 green = ((guint16)(color[1]*65535))>>8; | 2377 green = ((guint16)(color[1]*65535))>>8; |
| 2378 blue = ((guint16)(color[2]*65535))>>8; | 2378 blue = ((guint16)(color[2]*65535))>>8; |
| 2379 | 2379 |
