summaryrefslogtreecommitdiff
path: root/libslab
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-07-13 13:20:12 +0300
committermonsta <[email protected]>2016-07-13 13:20:12 +0300
commit0ad5edba4a1b6b5afa8a330703c21d56a019c2ee (patch)
treeebeefc5838a82f92f39286f6533ec09aaeaeb2b0 /libslab
parent3e4fd788cc7a0235d8d16048d95accce395cdc2b (diff)
downloadmate-control-center-0ad5edba4a1b6b5afa8a330703c21d56a019c2ee.tar.bz2
mate-control-center-0ad5edba4a1b6b5afa8a330703c21d56a019c2ee.tar.xz
libslab: drop unused code
Diffstat (limited to 'libslab')
-rw-r--r--libslab/mate-utils.c71
-rw-r--r--libslab/mate-utils.h2
2 files changed, 0 insertions, 73 deletions
diff --git a/libslab/mate-utils.c b/libslab/mate-utils.c
index cad5cca5..7eb31a05 100644
--- a/libslab/mate-utils.c
+++ b/libslab/mate-utils.c
@@ -2,8 +2,6 @@
#include <string.h>
-static void section_header_style_set (GtkWidget *, GtkStyle *, gpointer);
-
gboolean
load_image_by_id (GtkImage * image, GtkIconSize size, const gchar * image_id)
{
@@ -70,45 +68,6 @@ load_image_by_id (GtkImage * image, GtkIconSize size, const gchar * image_id)
return icon_exists;
}
-MateDesktopItem *
-load_desktop_item_by_unknown_id (const gchar * id)
-{
- MateDesktopItem *item;
- GError *error = NULL;
-
- item = mate_desktop_item_new_from_uri (id, 0, &error);
-
- if (!error)
- return item;
- else
- {
- g_error_free (error);
- error = NULL;
- }
-
- item = mate_desktop_item_new_from_file (id, 0, &error);
-
- if (!error)
- return item;
- else
- {
- g_error_free (error);
- error = NULL;
- }
-
- item = mate_desktop_item_new_from_basename (id, 0, &error);
-
- if (!error)
- return item;
- else
- {
- g_error_free (error);
- error = NULL;
- }
-
- return NULL;
-}
-
void
handle_g_error (GError ** error, const gchar * msg_format, ...)
{
@@ -134,33 +93,3 @@ handle_g_error (GError ** error, const gchar * msg_format, ...)
g_free (msg);
}
-GtkWidget *
-get_main_menu_section_header (const gchar * markup)
-{
- GtkWidget *label;
- gchar *text;
-
- text = g_strdup_printf ("<span size=\"large\">%s</span>", markup);
-
- label = gtk_label_new (text);
- gtk_label_set_use_markup (GTK_LABEL (label), TRUE);
- gtk_widget_set_name (label, "mate-main-menu-section-header");
-
- g_signal_connect (G_OBJECT (label), "style-set", G_CALLBACK (section_header_style_set),
- NULL);
-
- g_free (text);
-
- return label;
-}
-
-static void
-section_header_style_set (GtkWidget * widget, GtkStyle * prev_style, gpointer user_data)
-{
- if (prev_style
- && gtk_widget_get_style (widget)->fg[GTK_STATE_SELECTED].green ==
- prev_style->fg[GTK_STATE_SELECTED].green)
- return;
-
- gtk_widget_modify_fg (widget, GTK_STATE_NORMAL, &gtk_widget_get_style (widget)->bg[GTK_STATE_SELECTED]);
-}
diff --git a/libslab/mate-utils.h b/libslab/mate-utils.h
index 900c92d4..aa28f60d 100644
--- a/libslab/mate-utils.h
+++ b/libslab/mate-utils.h
@@ -30,9 +30,7 @@ extern "C" {
gboolean load_image_by_id (GtkImage * image, GtkIconSize size,
const gchar * image_id);
-MateDesktopItem *load_desktop_item_by_unknown_id (const gchar * id);
void handle_g_error (GError ** error, const gchar * user_format, ...);
-GtkWidget *get_main_menu_section_header (const gchar * markup);
#ifdef __cplusplus
}