mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-11-05 16:04:31 +00:00
9bddf997b9
2001-02-22 John Harper <jsh@eazel.com> reviewed by: George Lebl <jirka@5z.com> Mostly fixed bug 1796 (Design a better First Time Walkthrough) by implementing Arlo's new design: * libnautilus-extensions/nautilus-druid-page-eazel.c: changed a lot of the Druid text (new_title_label, new_body_label): functions for creating the two types of labels used in the druid. Title labels are always anti-aliased in a hardcoded font, while body labels use the user's font choice and are never anti-aliased (set_up_service_signup_page): this page has been removed (make_title_page_icon_box): function to create an hbox containing the four icons displayed on the start page Fixed bugs 5625 (Bottom line of "Select User Level" dialog is out of view), 5901 (First-Time Druid dimensions hard-coded, text can be truncated) and 6496 (First-time Druid window clips some contents (with 100 dpi fonts)): * libnautilus-extensions/nautilus-druid-page-eazel.c: hacked this widget to scale correctly, the main change is _not_ setting the width and height of the canvas widget item, to allow the normal size allocation mechanisms to work properly [ there are still a few minor things to tweak, but this is the bulk of the redesign done ] Fixed bug 6412 (Add option to disable medusa in the first time druid) * src/nautilus-first-time-druid.c: added `Launch Medusa' page, which is only displayed if the NAUTILUS_PREFERENCES_MEDUSA_BLOCKED option isn't set. Fix bug 6379 (Nautilus assumes http proxy is needed if updates.tgz doesn't exist) * src/nautilus-first-time-druid.c (download_callback): if result is GNOME_VFS_ERROR_NOT_FOUND, just print a message that there are no updates available, then continue as normal (instead of assuming a proxy error, and going into the proxy setup pane) Fixed bug 6528 (More explanation needed for GMC transistion stuff in the druid): * src/nautilus-first-time-druid.c (set_up_gmc_transition_page): added Vera's new text for this page of the druid Fixed illogical behaviour of show-desktop option in druid (the user's choice wasn't actually being applied, the saved value was always being used): * src/nautilus-first-time-druid.c (druid_finished): set NAUTILUS_PREFERENCE_SHOW_DESKTOP from the `draw_desktop' variable, not from `save_manage_desktop' * src/nautilus-first-time-druid.c (set_up_gmc_transition_page): don't default the `draw desktop' setting to true; instead set it to the `save_manage_desktop' value. Also, only display the `draw desktop' option when not in `beginner' mode Fixed bug 3060 (Font names marked for translation need comments): * libnautilus-extensions/nautilus-icon-factory.c, libnautilus-extensions/nautilus-gdk-font-extensions.c, libnautilus-extensions/nautilus-druid-page-eazel.c, src/nautilus-zoom-control.c, src/nautilus-first-time-druid.c: added comments before localized fonts and font components
100 lines
3.8 KiB
C
100 lines
3.8 KiB
C
/* nautilus-druid-page-eazel.h
|
|
* Copyright (C) 1999 Red Hat, Inc.
|
|
*
|
|
* All rights reserved.
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Library General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Library General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Library General Public
|
|
* License along with this library; if not, write to the
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
* Boston, MA 02111-1307, USA.
|
|
*/
|
|
/*
|
|
@NOTATION@
|
|
*/
|
|
#ifndef NAUTILUS_DRUID_PAGE_EAZEL_H
|
|
#define NAUTILUS_DRUID_PAGE_EAZEL_H
|
|
|
|
#include <libgnomeui/gnome-canvas.h>
|
|
#include <libgnomeui/gnome-druid-page.h>
|
|
#include <gdk-pixbuf/gdk-pixbuf.h>
|
|
|
|
BEGIN_GNOME_DECLS
|
|
|
|
#define NAUTILUS_TYPE_DRUID_PAGE_EAZEL (nautilus_druid_page_eazel_get_type ())
|
|
#define NAUTILUS_DRUID_PAGE_EAZEL(obj) (GTK_CHECK_CAST ((obj), NAUTILUS_TYPE_DRUID_PAGE_EAZEL, NautilusDruidPageEazel))
|
|
#define NAUTILUS_DRUID_PAGE_EAZEL_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), NAUTILUS_TYPE_DRUID_PAGE_EAZEL, NautilusDruidPageEazelClass))
|
|
#define NAUTILUS_IS_DRUID_PAGE_EAZEL(obj) (GTK_CHECK_TYPE ((obj), NAUTILUS_TYPE_DRUID_PAGE_EAZEL))
|
|
#define NAUTILUS_IS_DRUID_PAGE_EAZEL_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), NAUTILUS_TYPE_DRUID_PAGE_EAZEL))
|
|
|
|
typedef enum {
|
|
/* update structure when adding enums */
|
|
NAUTILUS_DRUID_PAGE_EAZEL_START,
|
|
NAUTILUS_DRUID_PAGE_EAZEL_FINISH,
|
|
NAUTILUS_DRUID_PAGE_EAZEL_OTHER
|
|
} NautilusDruidPageEazelPosition;
|
|
|
|
|
|
typedef struct NautilusDruidPageEazel NautilusDruidPageEazel;
|
|
typedef struct NautilusDruidPageEazelDetails NautilusDruidPageEazelDetails;
|
|
typedef struct NautilusDruidPageEazelClass NautilusDruidPageEazelClass;
|
|
|
|
struct NautilusDruidPageEazel
|
|
{
|
|
GnomeDruidPage parent;
|
|
|
|
GtkWidget *canvas;
|
|
char *title;
|
|
char *text;
|
|
GdkPixbuf *title_image;
|
|
GdkPixbuf *sidebar_image;
|
|
GdkPixbuf *background_image;
|
|
|
|
GtkWidget *widget;
|
|
|
|
NautilusDruidPageEazelPosition position : 2;
|
|
|
|
/*< private >*/
|
|
NautilusDruidPageEazelDetails *details;
|
|
};
|
|
|
|
struct NautilusDruidPageEazelClass
|
|
{
|
|
GnomeDruidPageClass parent_class;
|
|
};
|
|
|
|
GtkType nautilus_druid_page_eazel_get_type (void);
|
|
GtkWidget *nautilus_druid_page_eazel_new (NautilusDruidPageEazelPosition position);
|
|
GtkWidget *nautilus_druid_page_eazel_new_with_vals (NautilusDruidPageEazelPosition position,
|
|
const gchar *title,
|
|
const gchar *text,
|
|
GdkPixbuf *title_image,
|
|
GdkPixbuf *sidebar_image,
|
|
GdkPixbuf *background_image);
|
|
void nautilus_druid_page_eazel_put_widget (NautilusDruidPageEazel *druid_page_eazel,
|
|
GtkWidget *widget);
|
|
void nautilus_druid_page_eazel_set_text (NautilusDruidPageEazel *druid_page_eazel,
|
|
const gchar *text);
|
|
void nautilus_druid_page_eazel_set_title (NautilusDruidPageEazel *druid_page_eazel,
|
|
const gchar *title);
|
|
void nautilus_druid_page_eazel_set_title_label (NautilusDruidPageEazel *druid_page_eazel,
|
|
GtkLabel *label);
|
|
void nautilus_druid_page_eazel_set_title_image (NautilusDruidPageEazel *druid_page_eazel,
|
|
GdkPixbuf *title_image);
|
|
void nautilus_druid_page_eazel_set_sidebar_image (NautilusDruidPageEazel *druid_page_eazel,
|
|
GdkPixbuf *sidebar_image);
|
|
void nautilus_druid_page_eazel_set_background_image(NautilusDruidPageEazel *druid_page_eazel,
|
|
GdkPixbuf *background_image);
|
|
|
|
END_GNOME_DECLS
|
|
|
|
#endif /* NAUTILUS_DRUID_PAGE_EAZEL_H */
|