~awn-core/awn/trunk-rewrite

« back to all changes in this revision

Viewing changes to src/awn-applet-manager.c

  • Committer: Michal Hruby
  • Date: 2009-11-28 22:33:39 UTC
  • Revision ID: michal.mhr@gmail.com-20091128223339-09s6zhxzjr11s25s
        * src/awn-applet-manager.c:
        * src/awn-applet-manager.h:
        * src/awn-panel.c:
        Optimize the redraw during resizes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1173
1173
                             TRUE, TRUE, 0, GTK_PACK_START);
1174
1174
}
1175
1175
 
 
1176
void
 
1177
awn_applet_manager_redraw_throbbers (AwnAppletManager *manager)
 
1178
{
 
1179
  g_return_if_fail (AWN_IS_APPLET_MANAGER (manager));
 
1180
  //AwnAppletManagerPrivate *priv = manager->priv;
 
1181
  GList *list = gtk_container_get_children (GTK_CONTAINER (manager));
 
1182
 
 
1183
  for (GList *it = list; it != NULL; it = it->next)
 
1184
  {
 
1185
    if (AWN_IS_THROBBER (it->data) && GTK_WIDGET_VISIBLE (it->data))
 
1186
    {
 
1187
      gtk_widget_queue_draw (GTK_WIDGET (it->data));
 
1188
    }
 
1189
  }
 
1190
 
 
1191
  g_list_free (list);
 
1192
}
 
1193
 
1176
1194
GdkRegion*
1177
1195
awn_applet_manager_get_mask (AwnAppletManager *manager,
1178
1196
                             AwnPathType path_type,