mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-10-02 14:03:39 +00:00
remove nautilus-theme.[c-h] from the build process. remove the need to use
2005-03-16 Diego Gonzalez <diego@pemas.net> * libnautilus-private/Makefile.am: remove nautilus-theme.[c-h] from the build process. * libnautilus-private/nautilus-icon-factory.c: (load_thumbnail_frame) remove the need to use the deprecated nautilus themes. * libnautilus-private/nautilus-icon-canvas-item.c: (draw_strech_handles), (it_test_stretch_handle): remove the need to use the deprecated nautilus themes. * libnautilus-private/nautilus-thumbnails.c: * libnautilus-private/nautilus-icon-factory.c: remove nautilus-theme.h include * src/nautilus-navigation-window.c: * src/nautilus-property-browser.c: * src/nautilus-notes-viewer.c: * src/nautilus-sidebar-title.c: * src/nautilus-window-manage-views.c: * src/nautilus-window-toolbars.c: * src/nautilus-zoom-control.c: remove nautilus-theme.h include * src/nautilus-sidebar-title: (nautilus_sidebar_title_select_text_color): remove use of old theme stuff and adapt the shadow offset, made it equal to 1, which is the default. (nautilus_sidebar_title_theme_changed): remove, as there will be no sidebar theme changes. (nautilus_sidebar_title_init): remove the theme_changed callback, as there will not be sidebar theme changes anymore. * src/nautilus-notes-viewer.c: (nautilus_notes_viewer_init): remove use of old theme stuff. * icons/Makefile.am: don't install old theme stuff.
This commit is contained in:
parent
7c2ec2d139
commit
3b3939c697
37
ChangeLog
37
ChangeLog
|
@ -1,3 +1,40 @@
|
||||||
|
2005-03-16 Diego Gonzalez <diego@pemas.net>
|
||||||
|
|
||||||
|
* libnautilus-private/Makefile.am: remove nautilus-theme.[c-h]
|
||||||
|
from the build process.
|
||||||
|
* libnautilus-private/nautilus-icon-factory.c:
|
||||||
|
(load_thumbnail_frame) remove the need to use the deprecated
|
||||||
|
nautilus themes.
|
||||||
|
* libnautilus-private/nautilus-icon-canvas-item.c:
|
||||||
|
(draw_strech_handles), (it_test_stretch_handle):
|
||||||
|
remove the need to use the deprecated nautilus themes.
|
||||||
|
* libnautilus-private/nautilus-thumbnails.c:
|
||||||
|
* libnautilus-private/nautilus-icon-factory.c:
|
||||||
|
remove nautilus-theme.h include
|
||||||
|
|
||||||
|
* src/nautilus-navigation-window.c:
|
||||||
|
* src/nautilus-property-browser.c:
|
||||||
|
* src/nautilus-notes-viewer.c:
|
||||||
|
* src/nautilus-sidebar-title.c:
|
||||||
|
* src/nautilus-window-manage-views.c:
|
||||||
|
* src/nautilus-window-toolbars.c:
|
||||||
|
* src/nautilus-zoom-control.c:
|
||||||
|
remove nautilus-theme.h include
|
||||||
|
|
||||||
|
* src/nautilus-sidebar-title:
|
||||||
|
(nautilus_sidebar_title_select_text_color): remove use of
|
||||||
|
old theme stuff and adapt the shadow offset, made it equal to 1,
|
||||||
|
which is the default.
|
||||||
|
(nautilus_sidebar_title_theme_changed): remove, as there will be
|
||||||
|
no sidebar theme changes.
|
||||||
|
(nautilus_sidebar_title_init): remove the theme_changed callback, as
|
||||||
|
there will not be sidebar theme changes anymore.
|
||||||
|
|
||||||
|
* src/nautilus-notes-viewer.c:
|
||||||
|
(nautilus_notes_viewer_init): remove use of old theme stuff.
|
||||||
|
|
||||||
|
* icons/Makefile.am: don't install old theme stuff.
|
||||||
|
|
||||||
2005-03-31 Steve Murphy <murf@e-tools.com>
|
2005-03-31 Steve Murphy <murf@e-tools.com>
|
||||||
|
|
||||||
* configure.in: Added "rw" to ALL_LINGUAS.
|
* configure.in: Added "rw" to ALL_LINGUAS.
|
||||||
|
|
|
@ -1,14 +1,5 @@
|
||||||
NULL=
|
NULL=
|
||||||
|
|
||||||
SUBDIRS =\
|
|
||||||
crux_eggplant \
|
|
||||||
crux_teal \
|
|
||||||
default \
|
|
||||||
gnome \
|
|
||||||
sierra \
|
|
||||||
tahoe \
|
|
||||||
$(NULL)
|
|
||||||
|
|
||||||
icondir = $(datadir)/pixmaps/nautilus
|
icondir = $(datadir)/pixmaps/nautilus
|
||||||
|
|
||||||
icon_DATA =\
|
icon_DATA =\
|
||||||
|
|
|
@ -157,8 +157,6 @@ libnautilus_private_la_SOURCES = \
|
||||||
nautilus-sidebar.h \
|
nautilus-sidebar.h \
|
||||||
nautilus-sound.c \
|
nautilus-sound.c \
|
||||||
nautilus-sound.h \
|
nautilus-sound.h \
|
||||||
nautilus-theme.c \
|
|
||||||
nautilus-theme.h \
|
|
||||||
nautilus-thumbnails.c \
|
nautilus-thumbnails.c \
|
||||||
nautilus-thumbnails.h \
|
nautilus-thumbnails.h \
|
||||||
nautilus-trash-directory.c \
|
nautilus-trash-directory.c \
|
||||||
|
|
|
@ -32,7 +32,6 @@
|
||||||
#include "nautilus-global-preferences.h"
|
#include "nautilus-global-preferences.h"
|
||||||
#include "nautilus-icon-factory.h"
|
#include "nautilus-icon-factory.h"
|
||||||
#include "nautilus-icon-private.h"
|
#include "nautilus-icon-private.h"
|
||||||
#include "nautilus-theme.h"
|
|
||||||
#include <eel/eel-art-extensions.h>
|
#include <eel/eel-art-extensions.h>
|
||||||
#include <eel/eel-gdk-extensions.h>
|
#include <eel/eel-gdk-extensions.h>
|
||||||
#include <eel/eel-gdk-pixbuf-extensions.h>
|
#include <eel/eel-gdk-pixbuf-extensions.h>
|
||||||
|
@ -1140,7 +1139,7 @@ draw_stretch_handles (NautilusIconCanvasItem *item, GdkDrawable *drawable,
|
||||||
|
|
||||||
gc = gdk_gc_new (drawable);
|
gc = gdk_gc_new (drawable);
|
||||||
|
|
||||||
knob_filename = nautilus_theme_get_image_path ("knob.png");
|
knob_filename = nautilus_pixmap_file ("knob.png");
|
||||||
knob_pixbuf = gdk_pixbuf_new_from_file (knob_filename, NULL);
|
knob_pixbuf = gdk_pixbuf_new_from_file (knob_filename, NULL);
|
||||||
knob_width = gdk_pixbuf_get_width (knob_pixbuf);
|
knob_width = gdk_pixbuf_get_width (knob_pixbuf);
|
||||||
knob_height = gdk_pixbuf_get_height (knob_pixbuf);
|
knob_height = gdk_pixbuf_get_height (knob_pixbuf);
|
||||||
|
@ -2047,7 +2046,7 @@ hit_test_stretch_handle (NautilusIconCanvasItem *item,
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
knob_filename = nautilus_theme_get_image_path ("knob.png");
|
knob_filename = nautilus_pixmap_file ("knob.png");
|
||||||
knob_pixbuf = gdk_pixbuf_new_from_file (knob_filename, NULL);
|
knob_pixbuf = gdk_pixbuf_new_from_file (knob_filename, NULL);
|
||||||
knob_width = gdk_pixbuf_get_width (knob_pixbuf);
|
knob_width = gdk_pixbuf_get_width (knob_pixbuf);
|
||||||
knob_height = gdk_pixbuf_get_height (knob_pixbuf);
|
knob_height = gdk_pixbuf_get_height (knob_pixbuf);
|
||||||
|
|
|
@ -36,7 +36,6 @@
|
||||||
#include "nautilus-icon-factory-private.h"
|
#include "nautilus-icon-factory-private.h"
|
||||||
#include "nautilus-lib-self-check-functions.h"
|
#include "nautilus-lib-self-check-functions.h"
|
||||||
#include "nautilus-link.h"
|
#include "nautilus-link.h"
|
||||||
#include "nautilus-theme.h"
|
|
||||||
#include "nautilus-thumbnails.h"
|
#include "nautilus-thumbnails.h"
|
||||||
#include "nautilus-trash-monitor.h"
|
#include "nautilus-trash-monitor.h"
|
||||||
#include <eel/eel-debug.h>
|
#include <eel/eel-debug.h>
|
||||||
|
@ -321,7 +320,7 @@ load_thumbnail_frame (NautilusIconFactory *factory)
|
||||||
{
|
{
|
||||||
char *image_path;
|
char *image_path;
|
||||||
|
|
||||||
image_path = nautilus_theme_get_image_path ("thumbnail_frame.png");
|
image_path = nautilus_pixmap_file ("thumbnail_frame.png");
|
||||||
if (factory->thumbnail_frame != NULL) {
|
if (factory->thumbnail_frame != NULL) {
|
||||||
g_object_unref (factory->thumbnail_frame);
|
g_object_unref (factory->thumbnail_frame);
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,6 @@
|
||||||
#include "nautilus-global-preferences.h"
|
#include "nautilus-global-preferences.h"
|
||||||
#include "nautilus-icon-factory-private.h"
|
#include "nautilus-icon-factory-private.h"
|
||||||
#include "nautilus-icon-factory.h"
|
#include "nautilus-icon-factory.h"
|
||||||
#include "nautilus-theme.h"
|
|
||||||
#include <eel/eel-gdk-pixbuf-extensions.h>
|
#include <eel/eel-gdk-pixbuf-extensions.h>
|
||||||
#include <eel/eel-graphic-effects.h>
|
#include <eel/eel-graphic-effects.h>
|
||||||
#include <eel/eel-string.h>
|
#include <eel/eel-string.h>
|
||||||
|
@ -229,10 +228,7 @@ void
|
||||||
nautilus_thumbnail_frame_image (GdkPixbuf **pixbuf)
|
nautilus_thumbnail_frame_image (GdkPixbuf **pixbuf)
|
||||||
{
|
{
|
||||||
GdkPixbuf *pixbuf_with_frame, *frame;
|
GdkPixbuf *pixbuf_with_frame, *frame;
|
||||||
gboolean got_frame_offsets;
|
|
||||||
char *frame_offset_str;
|
|
||||||
int left_offset, top_offset, right_offset, bottom_offset;
|
int left_offset, top_offset, right_offset, bottom_offset;
|
||||||
char c;
|
|
||||||
|
|
||||||
/* The pixbuf isn't already framed (i.e., it was not made by
|
/* The pixbuf isn't already framed (i.e., it was not made by
|
||||||
* an old Nautilus), so we must embed it in a frame.
|
* an old Nautilus), so we must embed it in a frame.
|
||||||
|
@ -243,22 +239,10 @@ nautilus_thumbnail_frame_image (GdkPixbuf **pixbuf)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
got_frame_offsets = FALSE;
|
left_offset = 3;
|
||||||
frame_offset_str = nautilus_theme_get_theme_data ("thumbnails", "FRAME_OFFSETS");
|
top_offset = 3;
|
||||||
if (frame_offset_str != NULL) {
|
right_offset = 6;
|
||||||
if (sscanf (frame_offset_str, " %d , %d , %d , %d %c",
|
bottom_offset = 6;
|
||||||
&left_offset, &top_offset, &right_offset, &bottom_offset, &c) == 4) {
|
|
||||||
got_frame_offsets = TRUE;
|
|
||||||
}
|
|
||||||
g_free (frame_offset_str);
|
|
||||||
}
|
|
||||||
if (!got_frame_offsets) {
|
|
||||||
/* use nominal values since the info in the theme couldn't be found */
|
|
||||||
left_offset = 3;
|
|
||||||
top_offset = 3;
|
|
||||||
right_offset = 6;
|
|
||||||
bottom_offset = 6;
|
|
||||||
}
|
|
||||||
|
|
||||||
pixbuf_with_frame = eel_embed_image_in_frame
|
pixbuf_with_frame = eel_embed_image_in_frame
|
||||||
(*pixbuf, frame,
|
(*pixbuf, frame,
|
||||||
|
|
|
@ -73,7 +73,6 @@
|
||||||
#include <libnautilus-private/nautilus-mime-actions.h>
|
#include <libnautilus-private/nautilus-mime-actions.h>
|
||||||
#include <libnautilus-private/nautilus-program-choosing.h>
|
#include <libnautilus-private/nautilus-program-choosing.h>
|
||||||
#include <libnautilus-private/nautilus-sidebar.h>
|
#include <libnautilus-private/nautilus-sidebar.h>
|
||||||
#include <libnautilus-private/nautilus-theme.h>
|
|
||||||
#include <libnautilus-private/nautilus-view-factory.h>
|
#include <libnautilus-private/nautilus-view-factory.h>
|
||||||
#include <libnautilus-private/nautilus-clipboard.h>
|
#include <libnautilus-private/nautilus-clipboard.h>
|
||||||
#include <libnautilus-private/nautilus-undo.h>
|
#include <libnautilus-private/nautilus-undo.h>
|
||||||
|
|
|
@ -44,7 +44,6 @@
|
||||||
#include <libnautilus-private/nautilus-global-preferences.h>
|
#include <libnautilus-private/nautilus-global-preferences.h>
|
||||||
#include <libnautilus-private/nautilus-metadata.h>
|
#include <libnautilus-private/nautilus-metadata.h>
|
||||||
#include <libnautilus-private/nautilus-clipboard.h>
|
#include <libnautilus-private/nautilus-clipboard.h>
|
||||||
#include <libnautilus-private/nautilus-theme.h>
|
|
||||||
#include <libnautilus-private/nautilus-module.h>
|
#include <libnautilus-private/nautilus-module.h>
|
||||||
#include <libnautilus-private/nautilus-sidebar-provider.h>
|
#include <libnautilus-private/nautilus-sidebar-provider.h>
|
||||||
#include <libnautilus-extension/nautilus-property-page-provider.h>
|
#include <libnautilus-extension/nautilus-property-page-provider.h>
|
||||||
|
@ -320,7 +319,7 @@ nautilus_notes_viewer_init (NautilusNotesViewer *sidebar)
|
||||||
|
|
||||||
details->uri = g_strdup ("");
|
details->uri = g_strdup ("");
|
||||||
|
|
||||||
image_path = nautilus_theme_get_image_path ("note-indicator.png");
|
image_path = nautilus_pixmap_file ("note-indicator.png");
|
||||||
if (image_path) {
|
if (image_path) {
|
||||||
details->icon = gdk_pixbuf_new_from_file (image_path, NULL);
|
details->icon = gdk_pixbuf_new_from_file (image_path, NULL);
|
||||||
g_free (image_path);
|
g_free (image_path);
|
||||||
|
|
|
@ -84,7 +84,6 @@
|
||||||
#include <libnautilus-private/nautilus-file.h>
|
#include <libnautilus-private/nautilus-file.h>
|
||||||
#include <libnautilus-private/nautilus-global-preferences.h>
|
#include <libnautilus-private/nautilus-global-preferences.h>
|
||||||
#include <libnautilus-private/nautilus-metadata.h>
|
#include <libnautilus-private/nautilus-metadata.h>
|
||||||
#include <libnautilus-private/nautilus-theme.h>
|
|
||||||
#include <atk/atkrelationset.h>
|
#include <atk/atkrelationset.h>
|
||||||
|
|
||||||
/* property types */
|
/* property types */
|
||||||
|
|
|
@ -50,7 +50,6 @@
|
||||||
#include <libnautilus-private/nautilus-global-preferences.h>
|
#include <libnautilus-private/nautilus-global-preferences.h>
|
||||||
#include <libnautilus-private/nautilus-icon-factory.h>
|
#include <libnautilus-private/nautilus-icon-factory.h>
|
||||||
#include <libnautilus-private/nautilus-metadata.h>
|
#include <libnautilus-private/nautilus-metadata.h>
|
||||||
#include <libnautilus-private/nautilus-theme.h>
|
|
||||||
#include <libnautilus-private/nautilus-sidebar.h>
|
#include <libnautilus-private/nautilus-sidebar.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -59,6 +58,7 @@
|
||||||
#define MAX_TITLE_SIZE 256
|
#define MAX_TITLE_SIZE 256
|
||||||
#define MINIMUM_INFO_WIDTH 32
|
#define MINIMUM_INFO_WIDTH 32
|
||||||
#define SIDEBAR_INFO_MARGIN 4
|
#define SIDEBAR_INFO_MARGIN 4
|
||||||
|
#define SHADOW_OFFSET 1
|
||||||
|
|
||||||
#define MORE_INFO_FONT_SIZE 12
|
#define MORE_INFO_FONT_SIZE 12
|
||||||
#define MIN_TITLE_FONT_SIZE 12
|
#define MIN_TITLE_FONT_SIZE 12
|
||||||
|
@ -69,7 +69,6 @@ static void nautilus_sidebar_title_destroy (GtkObject
|
||||||
static void nautilus_sidebar_title_init (NautilusSidebarTitle *pixmap);
|
static void nautilus_sidebar_title_init (NautilusSidebarTitle *pixmap);
|
||||||
static void nautilus_sidebar_title_size_allocate (GtkWidget *widget,
|
static void nautilus_sidebar_title_size_allocate (GtkWidget *widget,
|
||||||
GtkAllocation *allocation);
|
GtkAllocation *allocation);
|
||||||
static void nautilus_sidebar_title_theme_changed (gpointer user_data);
|
|
||||||
static void update_icon (NautilusSidebarTitle *sidebar_title);
|
static void update_icon (NautilusSidebarTitle *sidebar_title);
|
||||||
static GtkWidget * sidebar_title_create_title_label (void);
|
static GtkWidget * sidebar_title_create_title_label (void);
|
||||||
static GtkWidget * sidebar_title_create_more_info_label (void);
|
static GtkWidget * sidebar_title_create_more_info_label (void);
|
||||||
|
@ -90,7 +89,6 @@ struct NautilusSidebarTitleDetails {
|
||||||
GtkWidget *emblem_box;
|
GtkWidget *emblem_box;
|
||||||
GtkWidget *notes;
|
GtkWidget *notes;
|
||||||
|
|
||||||
int shadow_offset;
|
|
||||||
gboolean determined_icon;
|
gboolean determined_icon;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -174,13 +172,7 @@ nautilus_sidebar_title_init (NautilusSidebarTitle *sidebar_title)
|
||||||
/* Keep track of changes in graphics trade offs */
|
/* Keep track of changes in graphics trade offs */
|
||||||
update_all (sidebar_title);
|
update_all (sidebar_title);
|
||||||
|
|
||||||
eel_preferences_add_callback_while_alive (NAUTILUS_PREFERENCES_THEME,
|
|
||||||
nautilus_sidebar_title_theme_changed,
|
|
||||||
sidebar_title,
|
|
||||||
G_OBJECT (sidebar_title));
|
|
||||||
|
|
||||||
/* initialize the label colors & fonts */
|
/* initialize the label colors & fonts */
|
||||||
nautilus_sidebar_title_theme_changed (sidebar_title);
|
|
||||||
style_set (GTK_WIDGET (sidebar_title), NULL);
|
style_set (GTK_WIDGET (sidebar_title), NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -245,32 +237,16 @@ nautilus_sidebar_title_select_text_color (NautilusSidebarTitle *sidebar_title,
|
||||||
sidebar_info_title_color = NULL;
|
sidebar_info_title_color = NULL;
|
||||||
sidebar_title_shadow_color = NULL;
|
sidebar_title_shadow_color = NULL;
|
||||||
|
|
||||||
if (is_default) {
|
/* FIXME bugzilla.gnome.org 42496: for now, both the title and info
|
||||||
sidebar_title_color = nautilus_theme_get_theme_data ("sidebar", "title_color");
|
* colors are the same - and hard coded */
|
||||||
sidebar_info_title_color = nautilus_theme_get_theme_data ("sidebar", "title_info_color");
|
if (eel_background_is_dark (background)) {
|
||||||
sidebar_title_shadow_color = nautilus_theme_get_theme_data ("sidebar", "title_shadow_color");
|
sidebar_title_color = g_strdup ("#FFFFFF");
|
||||||
}
|
sidebar_info_title_color = g_strdup ("#FFFFFF");
|
||||||
|
sidebar_title_shadow_color = g_strdup ("#000000");
|
||||||
if (sidebar_title_color == NULL) {
|
|
||||||
/* FIXME bugzilla.gnome.org 42496: for now, both the title and info
|
|
||||||
* colors are the same - and hard coded */
|
|
||||||
if (eel_background_is_dark (background)) {
|
|
||||||
sidebar_title_color = g_strdup ("#FFFFFF");
|
|
||||||
sidebar_info_title_color = g_strdup ("#FFFFFF");
|
|
||||||
sidebar_title_shadow_color = g_strdup ("#000000");
|
|
||||||
|
|
||||||
} else {
|
|
||||||
sidebar_title_color = g_strdup ("#000000");
|
|
||||||
sidebar_info_title_color = g_strdup ("#000000");
|
|
||||||
sidebar_title_shadow_color = g_strdup ("#FFFFFF");
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
if (sidebar_info_title_color == NULL) {
|
sidebar_title_color = g_strdup ("#000000");
|
||||||
sidebar_info_title_color = g_strdup (sidebar_title_color);
|
sidebar_info_title_color = g_strdup ("#000000");
|
||||||
}
|
sidebar_title_shadow_color = g_strdup ("#FFFFFF");
|
||||||
if (sidebar_title_shadow_color == NULL) {
|
|
||||||
sidebar_title_shadow_color = g_strdup ("#FFFFFF");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
eel_gtk_widget_set_foreground_color (sidebar_title->details->title_label,
|
eel_gtk_widget_set_foreground_color (sidebar_title->details->title_label,
|
||||||
|
@ -283,34 +259,16 @@ nautilus_sidebar_title_select_text_color (NautilusSidebarTitle *sidebar_title,
|
||||||
eel_gtk_label_set_drop_shadow_color (GTK_LABEL (sidebar_title->details->more_info_label),
|
eel_gtk_label_set_drop_shadow_color (GTK_LABEL (sidebar_title->details->more_info_label),
|
||||||
eel_parse_rgb_with_white_default (sidebar_title_shadow_color));
|
eel_parse_rgb_with_white_default (sidebar_title_shadow_color));
|
||||||
|
|
||||||
eel_gtk_label_set_drop_shadow_offset (GTK_LABEL (sidebar_title->details->title_label),
|
eel_gtk_label_set_drop_shadow_offset (GTK_LABEL (sidebar_title->details->title_label),
|
||||||
sidebar_title->details->shadow_offset);
|
SHADOW_OFFSET);
|
||||||
eel_gtk_label_set_drop_shadow_offset (GTK_LABEL (sidebar_title->details->more_info_label),
|
eel_gtk_label_set_drop_shadow_offset (GTK_LABEL (sidebar_title->details->more_info_label),
|
||||||
sidebar_title->details->shadow_offset);
|
SHADOW_OFFSET);
|
||||||
|
|
||||||
g_free (sidebar_title_color);
|
g_free (sidebar_title_color);
|
||||||
g_free (sidebar_info_title_color);
|
g_free (sidebar_info_title_color);
|
||||||
g_free (sidebar_title_shadow_color);
|
g_free (sidebar_title_shadow_color);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* handle theme changes by setting up the color of the labels */
|
|
||||||
static void
|
|
||||||
nautilus_sidebar_title_theme_changed (gpointer user_data)
|
|
||||||
{
|
|
||||||
char *shadow_offset_str;
|
|
||||||
NautilusSidebarTitle *sidebar_title;
|
|
||||||
|
|
||||||
sidebar_title = NAUTILUS_SIDEBAR_TITLE (user_data);
|
|
||||||
|
|
||||||
shadow_offset_str = nautilus_theme_get_theme_data ("sidebar", "shadow_offset");
|
|
||||||
if (shadow_offset_str) {
|
|
||||||
sidebar_title->details->shadow_offset = atoi (shadow_offset_str);
|
|
||||||
g_free (shadow_offset_str);
|
|
||||||
} else {
|
|
||||||
sidebar_title->details->shadow_offset = 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static char*
|
static char*
|
||||||
get_property_from_component (NautilusSidebarTitle *sidebar_title, const char *property)
|
get_property_from_component (NautilusSidebarTitle *sidebar_title, const char *property)
|
||||||
{
|
{
|
||||||
|
|
|
@ -58,7 +58,6 @@
|
||||||
#include <libnautilus-private/nautilus-metadata.h>
|
#include <libnautilus-private/nautilus-metadata.h>
|
||||||
#include <libnautilus-private/nautilus-mime-actions.h>
|
#include <libnautilus-private/nautilus-mime-actions.h>
|
||||||
#include <libnautilus-private/nautilus-monitor.h>
|
#include <libnautilus-private/nautilus-monitor.h>
|
||||||
#include <libnautilus-private/nautilus-theme.h>
|
|
||||||
#include <libnautilus-private/nautilus-view-factory.h>
|
#include <libnautilus-private/nautilus-view-factory.h>
|
||||||
#include <libnautilus-private/nautilus-window-info.h>
|
#include <libnautilus-private/nautilus-window-info.h>
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,6 @@
|
||||||
#include <libnautilus-private/nautilus-ui-utilities.h>
|
#include <libnautilus-private/nautilus-ui-utilities.h>
|
||||||
#include <libnautilus-private/nautilus-global-preferences.h>
|
#include <libnautilus-private/nautilus-global-preferences.h>
|
||||||
#include <libnautilus-private/nautilus-module.h>
|
#include <libnautilus-private/nautilus-module.h>
|
||||||
#include <libnautilus-private/nautilus-theme.h>
|
|
||||||
|
|
||||||
/* FIXME bugzilla.gnome.org 41243:
|
/* FIXME bugzilla.gnome.org 41243:
|
||||||
* We should use inheritance instead of these special cases
|
* We should use inheritance instead of these special cases
|
||||||
|
|
|
@ -46,7 +46,6 @@
|
||||||
#include <libnautilus-private/nautilus-file-utilities.h>
|
#include <libnautilus-private/nautilus-file-utilities.h>
|
||||||
#include <libnautilus-private/nautilus-global-preferences.h>
|
#include <libnautilus-private/nautilus-global-preferences.h>
|
||||||
#include <libnautilus-private/nautilus-marshal.h>
|
#include <libnautilus-private/nautilus-marshal.h>
|
||||||
#include <libnautilus-private/nautilus-theme.h>
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
Loading…
Reference in a new issue