~midori/midori/trunk

« back to all changes in this revision

Viewing changes to src/helpers.c

  • Committer: Christian Dywan
  • Date: 2008-01-05 05:24:38 UTC
  • Revision ID: git-v1:e2328a4bfcd0fd595209d01914c2ee6b6fe6965a
Implement a throbber widget.

The throbber is used in the menubar and individual tabs.

Clean infrastructure for private G* extensions is added.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
#include "search.h"
15
15
#include "sokoke.h"
 
16
#include "../katze/katze.h"
16
17
 
17
18
#include <string.h>
18
19
#include <webkit.h>
231
232
            // TODO: Retrieve mime type and load icon; don't forget ftp listings
232
233
        }
233
234
        else
234
 
            gtk_image_set_from_stock(GTK_IMAGE(browser->webView_icon)
235
 
             , GTK_STOCK_FILE, GTK_ICON_SIZE_MENU);
236
 
    }
237
 
    else
238
 
    {
239
 
        gtk_image_set_from_stock(GTK_IMAGE(browser->webView_icon)
240
 
         , GTK_STOCK_EXECUTE, GTK_ICON_SIZE_MENU);
241
 
    }
 
235
            katze_throbber_set_static_stock_id(KATZE_THROBBER(browser->webView_icon)
 
236
             , GTK_STOCK_FILE);
 
237
    }
 
238
    katze_throbber_set_animated(KATZE_THROBBER(browser->webView_icon)
 
239
     , browser->loadedPercent != -1);
242
240
}
243
241
 
244
242
void update_security(CBrowser* browser)
382
380
        g_object_set(action, "tooltip", "Stop loading the current page", NULL);
383
381
        gtk_widget_show(browser->progress);
384
382
    }
 
383
    katze_throbber_set_animated(KATZE_THROBBER(browser->throbber)
 
384
     , browser->loadedPercent != -1);
385
385
 
386
386
    gtk_image_set_from_stock(GTK_IMAGE(browser->location_icon), GTK_STOCK_FILE
387
387
     , GTK_ICON_SIZE_MENU);