diff options
author | monsta <[email protected]> | 2016-07-13 13:20:12 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-07-13 13:20:12 +0300 |
commit | 0ad5edba4a1b6b5afa8a330703c21d56a019c2ee (patch) | |
tree | ebeefc5838a82f92f39286f6533ec09aaeaeb2b0 /libslab/mate-utils.c | |
parent | 3e4fd788cc7a0235d8d16048d95accce395cdc2b (diff) | |
download | mate-control-center-0ad5edba4a1b6b5afa8a330703c21d56a019c2ee.tar.bz2 mate-control-center-0ad5edba4a1b6b5afa8a330703c21d56a019c2ee.tar.xz |
libslab: drop unused code
Diffstat (limited to 'libslab/mate-utils.c')
-rw-r--r-- | libslab/mate-utils.c | 71 |
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, >k_widget_get_style (widget)->bg[GTK_STATE_SELECTED]); -} |