summaryrefslogtreecommitdiff
path: root/capplets
diff options
context:
space:
mode:
Diffstat (limited to 'capplets')
-rw-r--r--capplets/accessibility/at-properties/Makefile.am2
-rw-r--r--capplets/accessibility/at-properties/main.c1
-rw-r--r--capplets/accessibility/at-properties/mate-at-properties.desktop.in.in (renamed from capplets/accessibility/at-properties/at-properties.desktop.in.in)0
-rw-r--r--capplets/appearance/appearance-main.c2
-rw-r--r--capplets/appearance/appearance-support.c32
-rw-r--r--capplets/appearance/appearance-themes.c6
-rw-r--r--capplets/default-applications/Makefile.am2
-rw-r--r--capplets/display/Makefile.am2
-rw-r--r--capplets/display/mate-display-properties.desktop.in.in (renamed from capplets/display/display-properties.desktop.in.in)0
-rw-r--r--capplets/display/xrandr-capplet.c6
-rw-r--r--capplets/keybindings/mate-keybinding-properties.c2
-rw-r--r--capplets/keyboard/Makefile.am2
-rw-r--r--capplets/keyboard/mate-keyboard.desktop.in.in (renamed from capplets/keyboard/keyboard.desktop.in.in)0
-rw-r--r--capplets/network/mate-network-properties.c1
-rw-r--r--capplets/windows/Makefile.am2
-rw-r--r--capplets/windows/mate-window-properties.desktop.in.in (renamed from capplets/windows/window-properties.desktop.in.in)0
16 files changed, 37 insertions, 23 deletions
diff --git a/capplets/accessibility/at-properties/Makefile.am b/capplets/accessibility/at-properties/Makefile.am
index ecff71a1..178a3165 100644
--- a/capplets/accessibility/at-properties/Makefile.am
+++ b/capplets/accessibility/at-properties/Makefile.am
@@ -8,7 +8,7 @@ mate_at_properties_LDFLAGS = -export-dynamic
@INTLTOOL_DESKTOP_RULE@
desktopdir = $(datadir)/applications
-Desktop_in_files = at-properties.desktop.in
+Desktop_in_files = mate-at-properties.desktop.in
desktop_DATA = $(Desktop_in_files:.desktop.in=.desktop)
pixmapdir = $(pkgdatadir)/pixmaps
diff --git a/capplets/accessibility/at-properties/main.c b/capplets/accessibility/at-properties/main.c
index 59160cda..8c62cc1f 100644
--- a/capplets/accessibility/at-properties/main.c
+++ b/capplets/accessibility/at-properties/main.c
@@ -211,7 +211,6 @@ setup_dialog (GtkBuilder *builder, GSettings *settings)
{
GtkWidget *widget;
GObject *object;
- GObject *peditor;
object = gtk_builder_get_object (builder, "at_enable_toggle");
g_signal_connect (object, "toggled",
diff --git a/capplets/accessibility/at-properties/at-properties.desktop.in.in b/capplets/accessibility/at-properties/mate-at-properties.desktop.in.in
index ff4cd37d..ff4cd37d 100644
--- a/capplets/accessibility/at-properties/at-properties.desktop.in.in
+++ b/capplets/accessibility/at-properties/mate-at-properties.desktop.in.in
diff --git a/capplets/appearance/appearance-main.c b/capplets/appearance/appearance-main.c
index 65e703ad..b16b76fe 100644
--- a/capplets/appearance/appearance-main.c
+++ b/capplets/appearance/appearance-main.c
@@ -38,7 +38,9 @@ init_appearance_data (int *argc, char ***argv, GOptionContext *context)
GtkBuilder *ui;
GError *err = NULL;
+#if !GLIB_CHECK_VERSION (2, 32, 0)
g_thread_init (NULL);
+#endif
gdk_threads_init ();
gdk_threads_enter ();
theme_thumbnail_factory_init (*argc, *argv);
diff --git a/capplets/appearance/appearance-support.c b/capplets/appearance/appearance-support.c
index 42b906cc..25cc003c 100644
--- a/capplets/appearance/appearance-support.c
+++ b/capplets/appearance/appearance-support.c
@@ -57,21 +57,34 @@ metacity_is_running()
}
static void
-metacity_theme_apply(const gchar *theme)
+metacity_theme_apply(const gchar *theme, const gchar *font)
{
/* set theme, we use gconf and gsettings binaries to avoid schemas and versions issues */
if (is_program_in_path ("gconftool-2"))
{
- gchar *gconf_cmd = g_strdup_printf("gconftool-2 --set --type string /apps/metacity/general/theme '%s'", theme);
+ gchar *gconf_cmd = NULL;
+
+ gconf_cmd = g_strdup_printf("gconftool-2 --set --type string /apps/metacity/general/theme '%s'", theme);
+ g_spawn_command_line_async (gconf_cmd, NULL);
+ g_free (gconf_cmd);
+
+ gconf_cmd = g_strdup_printf("gconftool-2 --set --type string /apps/metacity/general/titlebar_font '%s'", font);
g_spawn_command_line_async (gconf_cmd, NULL);
g_free (gconf_cmd);
}
if (is_program_in_path ("gsettings"))
{
- gchar *gsettings_cmd = g_strdup_printf("gsettings set org.gnome.desktop.wm.preferences theme '%s'", theme);
+ gchar *gsettings_cmd = NULL;
+
+ gsettings_cmd = g_strdup_printf("gsettings set org.gnome.desktop.wm.preferences theme '%s'", theme);
g_spawn_command_line_async (gsettings_cmd, NULL);
g_free (gsettings_cmd);
+
+ gsettings_cmd = g_strdup_printf("gsettings set org.gnome.desktop.wm.preferences titlebar-font '%s'", font);
+ g_spawn_command_line_async (gsettings_cmd, NULL);
+ g_free (gsettings_cmd);
+
}
}
@@ -79,11 +92,14 @@ static void
marco_theme_changed(GSettings *settings, gchar *key, AppearanceData* data)
{
gchar *theme = NULL;
+ gchar *font = NULL;
if (metacity_is_running ())
{
- theme = g_settings_get_string (settings, key);
- metacity_theme_apply (theme);
+ theme = g_settings_get_string (settings, MARCO_THEME_KEY);
+ font = g_settings_get_string (settings, WINDOW_TITLE_FONT_KEY);
+ metacity_theme_apply (theme, font);
g_free (theme);
+ g_free (font);
}
}
@@ -92,12 +108,14 @@ support_init(AppearanceData* data)
{
/* needed for wm_common_get_current_window_manager() */
wm_common_update_window ();
- /* GSettings signal */
+ /* GSettings signals */
g_signal_connect (data->marco_settings, "changed::" MARCO_THEME_KEY,
G_CALLBACK (marco_theme_changed), data);
+ g_signal_connect (data->marco_settings, "changed::" WINDOW_TITLE_FONT_KEY,
+ G_CALLBACK (marco_theme_changed), data);
/* apply theme at start */
if (metacity_is_running ())
- marco_theme_changed (data->marco_settings, MARCO_THEME_KEY, data);
+ marco_theme_changed (data->marco_settings, NULL, data);
}
void
diff --git a/capplets/appearance/appearance-themes.c b/capplets/appearance/appearance-themes.c
index 57c175cd..b2dfbb1b 100644
--- a/capplets/appearance/appearance-themes.c
+++ b/capplets/appearance/appearance-themes.c
@@ -209,7 +209,7 @@ theme_load_from_gsettings (AppearanceData *data)
theme->gtk_theme_name = g_settings_get_string (data->interface_settings, GTK_THEME_KEY);
if (theme->gtk_theme_name == NULL)
- theme->gtk_theme_name = g_strdup ("Clearlooks");
+ theme->gtk_theme_name = g_strdup ("Menta");
scheme = g_settings_get_string (data->interface_settings, COLOR_SCHEME_KEY);
if (scheme == NULL || !strcmp (scheme, "")) {
@@ -220,11 +220,11 @@ theme_load_from_gsettings (AppearanceData *data)
theme->marco_theme_name = g_settings_get_string (data->marco_settings, MARCO_THEME_KEY);
if (theme->marco_theme_name == NULL)
- theme->marco_theme_name = g_strdup ("Clearlooks");
+ theme->marco_theme_name = g_strdup ("Menta");
theme->icon_theme_name = g_settings_get_string (data->interface_settings, ICON_THEME_KEY);
if (theme->icon_theme_name == NULL)
- theme->icon_theme_name = g_strdup ("mate");
+ theme->icon_theme_name = g_strdup ("menta");
/* We need this because mate-control-center does not depend on mate-notification-daemon,
* and if we try to get notification theme without schema installed, gsettings crashes
diff --git a/capplets/default-applications/Makefile.am b/capplets/default-applications/Makefile.am
index 71a2d1db..81c38c10 100644
--- a/capplets/default-applications/Makefile.am
+++ b/capplets/default-applications/Makefile.am
@@ -1,5 +1,5 @@
# This is used in MATECC_CAPPLETS_CFLAGS
-cappletname = default-applications
+cappletname = mate-default-applications-properties
bin_PROGRAMS = mate-default-applications-properties
diff --git a/capplets/display/Makefile.am b/capplets/display/Makefile.am
index 972f271d..4a304a97 100644
--- a/capplets/display/Makefile.am
+++ b/capplets/display/Makefile.am
@@ -48,7 +48,7 @@ iconssvgdir = $(datadir)/icons/hicolor/scalable/apps
dist_iconssvg_DATA = icons/scalable/mate-preferences-desktop-display.svg
desktopdir = $(datadir)/applications
-Desktop_in_files = display-properties.desktop.in
+Desktop_in_files = mate-display-properties.desktop.in
desktop_DATA = $(Desktop_in_files:.desktop.in=.desktop)
AM_CPPFLAGS = $(DISPLAY_CAPPLET_CFLAGS) \
diff --git a/capplets/display/display-properties.desktop.in.in b/capplets/display/mate-display-properties.desktop.in.in
index 607e354e..607e354e 100644
--- a/capplets/display/display-properties.desktop.in.in
+++ b/capplets/display/mate-display-properties.desktop.in.in
diff --git a/capplets/display/xrandr-capplet.c b/capplets/display/xrandr-capplet.c
index 433b25db..7b3d2057 100644
--- a/capplets/display/xrandr-capplet.c
+++ b/capplets/display/xrandr-capplet.c
@@ -229,7 +229,6 @@ add_key (GtkWidget *widget,
GtkComboBox *box = GTK_COMBO_BOX (widget);
GtkTreeModel *model = gtk_combo_box_get_model (box);
GtkListStore *store = GTK_LIST_STORE (model);
- gboolean retval;
info.text = text;
info.found = FALSE;
@@ -248,11 +247,6 @@ add_key (GtkWidget *widget,
5, rotation,
-1);
- retval = TRUE;
- }
- else
- {
- retval = FALSE;
}
}
diff --git a/capplets/keybindings/mate-keybinding-properties.c b/capplets/keybindings/mate-keybinding-properties.c
index ab3eaa6e..da017f17 100644
--- a/capplets/keybindings/mate-keybinding-properties.c
+++ b/capplets/keybindings/mate-keybinding-properties.c
@@ -1935,7 +1935,9 @@ main (int argc, char *argv[])
GtkBuilder *builder;
GSettings *marco_settings;
+#if !GLIB_CHECK_VERSION (2, 32, 0)
g_thread_init (NULL);
+#endif
gtk_init (&argc, &argv);
bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR);
diff --git a/capplets/keyboard/Makefile.am b/capplets/keyboard/Makefile.am
index 58cbb1ae..0b48fbbd 100644
--- a/capplets/keyboard/Makefile.am
+++ b/capplets/keyboard/Makefile.am
@@ -27,7 +27,7 @@ dist_ui_DATA = mate-keyboard-properties-a11y-notifications.ui \
mate-keyboard-properties-options-dialog.ui
desktopdir = $(datadir)/applications
-Desktop_in_files = keyboard.desktop.in
+Desktop_in_files = mate-keyboard.desktop.in
desktop_DATA = $(Desktop_in_files:.desktop.in=.desktop)
AM_CPPFLAGS = \
diff --git a/capplets/keyboard/keyboard.desktop.in.in b/capplets/keyboard/mate-keyboard.desktop.in.in
index 2c9cb013..2c9cb013 100644
--- a/capplets/keyboard/keyboard.desktop.in.in
+++ b/capplets/keyboard/mate-keyboard.desktop.in.in
diff --git a/capplets/network/mate-network-properties.c b/capplets/network/mate-network-properties.c
index bb611336..d1eaa515 100644
--- a/capplets/network/mate-network-properties.c
+++ b/capplets/network/mate-network-properties.c
@@ -380,7 +380,6 @@ cb_ignore_hosts_gsettings_changed (GSettings *settings, gchar *key, gpointer use
static void
setup_dialog (GtkBuilder *builder)
{
- gint mode;
GSList *mode_group;
GtkListStore *store;
diff --git a/capplets/windows/Makefile.am b/capplets/windows/Makefile.am
index ff357371..1f50f073 100644
--- a/capplets/windows/Makefile.am
+++ b/capplets/windows/Makefile.am
@@ -15,7 +15,7 @@ uidir = $(pkgdatadir)/ui
ui_DATA = mate-window-properties.ui
desktopdir = $(datadir)/applications
-Desktop_in_files = window-properties.desktop.in
+Desktop_in_files = mate-window-properties.desktop.in
desktop_DATA = $(Desktop_in_files:.desktop.in=.desktop)
AM_CPPFLAGS = $(MATECC_CAPPLETS_CFLAGS) \
diff --git a/capplets/windows/window-properties.desktop.in.in b/capplets/windows/mate-window-properties.desktop.in.in
index 0d72d6b8..0d72d6b8 100644
--- a/capplets/windows/window-properties.desktop.in.in
+++ b/capplets/windows/mate-window-properties.desktop.in.in