~charlesk/appmenu-gtk/lp-788640

« back to all changes in this revision

Viewing changes to src/bridge.c

  • Committer: Michael Terry
  • Date: 2011-02-07 19:14:08 UTC
  • mto: This revision was merged to the branch mainline in revision 114.
  • Revision ID: mike@mterry.name-20110207191408-l8gfs87bl025j8vl
if a window is already realized by the time we get to it, rebuild directly

Show diffs side-by-side

added added

removed removed

Lines of Context:
779
779
 
780
780
  if (GTK_IS_WINDOW (toplevel))
781
781
    {
782
 
      g_signal_connect (toplevel, "realize",
783
 
                        G_CALLBACK (toplevel_realized),
784
 
                        bridge);
 
782
      if (gtk_widget_get_realized (toplevel))
 
783
        {
 
784
          rebuild (bridge, toplevel);
 
785
        }
 
786
      else
 
787
        {
 
788
          g_signal_connect (toplevel, "realize",
 
789
                            G_CALLBACK (toplevel_realized),
 
790
                            bridge);
 
791
        }
785
792
    }
786
793
}
787
794