summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c580a96)
raw | patch | inline | side by side (parent: c580a96)
author | Jon A. Cruz <jon@joncruz.org> | |
Sat, 18 Dec 2010 06:11:52 +0000 (22:11 -0800) | ||
committer | Jon A. Cruz <jon@joncruz.org> | |
Sat, 18 Dec 2010 06:11:52 +0000 (22:11 -0800) |
src/widgets/desktop-widget.cpp | patch | blob | history |
index 4620b15328e0137603f11dcf50078cf0426513a5..3509a1040d20dc1789ccfe86511e8bbbfc4129ad 100644 (file)
SPViewWidgetClass *dtw_parent_class;
-static GTimer *baseTimer = 0;
-static bool timeReported = false;
-
-static void timeGoing(gchar const* id)
-{
- if ( !baseTimer ) {
- g_message("Starting time at point [%s]", id);
- baseTimer = g_timer_new();
- }
-}
-
-static void checkTime(gchar const* msg)
-{
- if ( baseTimer && !timeReported ) {
- timeReported = true;
- g_timer_stop(baseTimer);
- gulong msCount = 0;
- gdouble secs = g_timer_elapsed( baseTimer, &msCount );
- g_message("Time ended at %2.3f with [%s]", secs, msg);
- }
-}
-
-
-
class CMSPrefWatcher {
public:
CMSPrefWatcher() :
{
static GtkType type = 0;
if (!type) {
- timeGoing("SPDesktopWidget::getType");
GTypeInfo info = {
sizeof(SPDesktopWidgetClass),
0, // base_init
static void
sp_desktop_widget_class_init (SPDesktopWidgetClass *klass)
{
- timeGoing("sp_desktop_widget_class_init");
dtw_parent_class = (SPViewWidgetClass*)gtk_type_class (SP_TYPE_VIEW_WIDGET);
GtkObjectClass *object_class = (GtkObjectClass *) klass;
*/
void SPDesktopWidget::init( SPDesktopWidget *dtw )
{
- timeGoing("SPDesktopWidget::init");
GtkWidget *widget;
GtkWidget *tbl;
GtkWidget *canvas_tbl;