mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-27 15:55:16 +00:00
Bug 818611: Move declaration of "GSource* gs" to beginning of code block, to fix build warning in gtk2xtbin.c. r=karlt
This commit is contained in:
parent
471bd4ee14
commit
ff94edc40f
@ -464,7 +464,8 @@ xt_client_xloop_create(void)
|
|||||||
/* If this is the first running widget, hook this display into the
|
/* If this is the first running widget, hook this display into the
|
||||||
mainloop */
|
mainloop */
|
||||||
if (0 == num_widgets) {
|
if (0 == num_widgets) {
|
||||||
int cnumber;
|
int cnumber;
|
||||||
|
GSource* gs;
|
||||||
|
|
||||||
/* Set up xtdisplay in case we're missing one */
|
/* Set up xtdisplay in case we're missing one */
|
||||||
if (!xtdisplay) {
|
if (!xtdisplay) {
|
||||||
@ -475,11 +476,11 @@ xt_client_xloop_create(void)
|
|||||||
* hook Xt event loop into the glib event loop.
|
* hook Xt event loop into the glib event loop.
|
||||||
*/
|
*/
|
||||||
/* the assumption is that gtk_init has already been called */
|
/* the assumption is that gtk_init has already been called */
|
||||||
GSource* gs = g_source_new(&xt_event_funcs, sizeof(GSource));
|
gs = g_source_new(&xt_event_funcs, sizeof(GSource));
|
||||||
if (!gs) {
|
if (!gs) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
g_source_set_priority(gs, GDK_PRIORITY_EVENTS);
|
g_source_set_priority(gs, GDK_PRIORITY_EVENTS);
|
||||||
g_source_set_can_recurse(gs, TRUE);
|
g_source_set_can_recurse(gs, TRUE);
|
||||||
tag = g_source_attach(gs, (GMainContext*)NULL);
|
tag = g_source_attach(gs, (GMainContext*)NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user