GList* children;
#endif
GtkSettings* gtk_settings;
- GtkWidget* hbox;
GtkWidget* hpaned;
GtkWidget* vpaned;
GtkToolItem* toolitem;
g_signal_connect (browser->bookmarkbar, "popup-context-menu",
G_CALLBACK (midori_browser_toolbar_popup_context_menu_cb), browser);
- /* Superuser warning */
- if ((hbox = sokoke_superuser_warning_new ()))
- gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
-
/* Create the panel */
hpaned = gtk_hpaned_new ();
g_signal_connect (hpaned, "notify::position",
return NULL;
}
-GtkWidget*
-sokoke_superuser_warning_new (void)
-{
- /* Create a horizontal bar with a security warning
- This returns NULL if the user is no superuser */
- #if HAVE_UNISTD_H
- if (G_UNLIKELY (!geteuid ())) /* effective superuser? */
- {
- GtkWidget* hbox;
- GtkWidget* label;
-
- hbox = gtk_event_box_new ();
- gtk_widget_modify_bg (hbox, GTK_STATE_NORMAL,
- &hbox->style->bg[GTK_STATE_SELECTED]);
- /* i18n: A superuser, or system administrator, may not be 'root' */
- label = gtk_label_new (_("Warning: You are using a superuser account!"));
- gtk_misc_set_padding (GTK_MISC (label), 0, 2);
- gtk_widget_modify_fg (GTK_WIDGET (label), GTK_STATE_NORMAL,
- >K_WIDGET (label)->style->fg[GTK_STATE_SELECTED]);
- gtk_widget_show (label);
- gtk_container_add (GTK_CONTAINER (hbox), GTK_WIDGET (label));
- gtk_widget_show (hbox);
- return hbox;
- }
- #endif
- return NULL;
-}
-
GtkWidget*
sokoke_hig_frame_new (const gchar* title)
{
sokoke_xfce_header_new (const gchar* icon,
const gchar* title);
-GtkWidget*
-sokoke_superuser_warning_new (void);
-
GtkWidget*
sokoke_hig_frame_new (const gchar* title);