~midori/midori/trunk

« back to all changes in this revision

Viewing changes to src/browser.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:
18
18
#include "webView.h"
19
19
#include "webSearch.h"
20
20
#include "xbel.h"
 
21
#include "../katze/katze.h"
21
22
 
22
23
#include <gdk/gdkkeysyms.h>
23
24
#include <string.h>
1190
1191
    browser->menubar = gtk_ui_manager_get_widget(ui_manager, "/menubar");
1191
1192
    GtkWidget* menuitem = gtk_menu_item_new();
1192
1193
    gtk_widget_show(menuitem);
1193
 
    browser->throbber = gtk_image_new_from_stock(GTK_STOCK_EXECUTE, GTK_ICON_SIZE_MENU);
 
1194
    browser->throbber = katze_throbber_new();
1194
1195
    gtk_widget_show(browser->throbber);
1195
1196
    gtk_container_add(GTK_CONTAINER(menuitem), browser->throbber);
1196
1197
    gtk_widget_set_sensitive(menuitem, FALSE);
1561
1562
     , G_CALLBACK(on_notebook_tab_mouse_up), browser);
1562
1563
    GtkWidget* hbox = gtk_hbox_new(FALSE, 1);
1563
1564
    gtk_container_add(GTK_CONTAINER(eventbox), GTK_WIDGET(hbox));
1564
 
    browser->webView_icon = gtk_image_new_from_stock(GTK_STOCK_FILE, GTK_ICON_SIZE_MENU);
 
1565
    browser->webView_icon = katze_throbber_new();
 
1566
    katze_throbber_set_static_stock_id(KATZE_THROBBER(browser->webView_icon)
 
1567
     , GTK_STOCK_FILE);
1565
1568
    gtk_box_pack_start(GTK_BOX(hbox), browser->webView_icon, FALSE, FALSE, 0);
1566
1569
    browser->webView_name = gtk_label_new(xbel_item_get_title(browser->sessionItem));
1567
1570
    gtk_misc_set_alignment(GTK_MISC(browser->webView_name), 0.0, 0.5);