mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 23:23:33 +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
|
||||
mainloop */
|
||||
if (0 == num_widgets) {
|
||||
int cnumber;
|
||||
int cnumber;
|
||||
GSource* gs;
|
||||
|
||||
/* Set up xtdisplay in case we're missing one */
|
||||
if (!xtdisplay) {
|
||||
@ -475,11 +476,11 @@ xt_client_xloop_create(void)
|
||||
* hook Xt event loop into the glib event loop.
|
||||
*/
|
||||
/* the assumption is that gtk_init has already been called */
|
||||
GSource* gs = g_source_new(&xt_event_funcs, sizeof(GSource));
|
||||
if (!gs) {
|
||||
return;
|
||||
}
|
||||
|
||||
gs = g_source_new(&xt_event_funcs, sizeof(GSource));
|
||||
if (!gs) {
|
||||
return;
|
||||
}
|
||||
|
||||
g_source_set_priority(gs, GDK_PRIORITY_EVENTS);
|
||||
g_source_set_can_recurse(gs, TRUE);
|
||||
tag = g_source_attach(gs, (GMainContext*)NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user