summaryrefslogtreecommitdiff
path: root/libslab/mate-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'libslab/mate-utils.c')
-rw-r--r--libslab/mate-utils.c71
1 files changed, 0 insertions, 71 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]);
-}