~unity-team/unity/panel-fixes

« back to all changes in this revision

Viewing changes to src/PanelStyle.cpp

Add support for swtiching themes properly

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
  _offscreen = gtk_offscreen_window_new ();
28
28
  gtk_widget_set_name (_offscreen, "UnityPanelWidget");
29
29
  gtk_widget_set_size_request (_offscreen, 100, 24);
30
 
  gtk_widget_show (_offscreen);
 
30
  gtk_widget_show_all (_offscreen);
31
31
 
32
32
  g_signal_connect (gtk_settings_get_default (), "notify::gtk-theme-name",
33
33
                    G_CALLBACK (PanelStyle::OnStyleChanged), this);
120
120
PanelStyle::GetBackground (int width, int height)
121
121
{
122
122
  gtk_widget_set_size_request (_offscreen, width, height);
123
 
 
 
123
  gdk_window_process_updates (gtk_widget_get_window (_offscreen), TRUE);
 
124
  
124
125
  return gtk_offscreen_window_get_pixbuf (GTK_OFFSCREEN_WINDOW (_offscreen));
125
126
}
126
127