Commit 2da44b97 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Remove deprecated members that are no longer used

Signed-off-by: Sebastian Ramacher's avatarSebastian Ramacher <sebastian+dev@ramacher.at>
parent eacc2644
......@@ -294,12 +294,6 @@ girara_session_create()
session->gtk.inputbar = gtk_event_box_new();
session->gtk.tabs = GTK_NOTEBOOK(gtk_notebook_new());
/* deprecated members */
GIRARA_IGNORE_DEPRECATED
session->settings = session->private_data->settings;
session->global.command_history = girara_get_command_history(session);
GIRARA_UNIGNORE
return session;
}
......@@ -615,9 +609,6 @@ girara_session_destroy(girara_session_t* session)
/* clean up private data */
girara_session_private_free(session->private_data);
session->private_data = NULL;
GIRARA_IGNORE_DEPRECATED
session->settings = NULL;
GIRARA_UNIGNORE
/* clean up session */
g_slice_free(girara_session_t, session);
......
......@@ -78,11 +78,6 @@ struct girara_session_s
girara_list_t* statusbar_items; /**< List of statusbar items */
} elements;
/**
* List of settings (deprecated)
*/
girara_list_t* GIRARA_DEPRECATED(settings);
struct
{
int inputbar_activate; /**< Inputbar activation */
......@@ -108,7 +103,6 @@ struct girara_session_s
{
GString *buffer; /**< Buffer */
void* data; /**< User data */
girara_list_t* GIRARA_DEPRECATED(command_history); /**< Command history (deprecated) */
bool autohide_inputbar; /**< Auto-hide inputbar */
bool hide_statusbar; /**< Hide statusbar */
} global;
......
......@@ -64,30 +64,3 @@ girara_statusbar_item_set_text(girara_session_t* session, girara_statusbar_item_
return true;
}
bool
girara_statusbar_item_set_foreground(girara_session_t* session, girara_statusbar_item_t* item, const char* color)
{
g_return_val_if_fail(session != NULL, false);
g_return_val_if_fail(item != NULL, false);
GdkRGBA gdk_color;
gdk_rgba_parse(&gdk_color, color);
gtk_widget_override_color(GTK_WIDGET(item->text),
GTK_STATE_FLAG_NORMAL, &gdk_color);
return true;
}
bool
girara_statusbar_set_background(girara_session_t* session, const char* color)
{
g_return_val_if_fail(session != NULL, false);
GdkRGBA gdk_color;
gdk_rgba_parse(&gdk_color, color);
gtk_widget_override_background_color(GTK_WIDGET(session->gtk.statusbar),
GTK_STATE_FLAG_NORMAL, &gdk_color);
return true;
}
......@@ -45,27 +45,4 @@ girara_statusbar_item_t* girara_statusbar_item_add(girara_session_t* session,
bool girara_statusbar_item_set_text(girara_session_t* session,
girara_statusbar_item_t* item, const char* text);
/**
* Sets the foreground color of an statusbar item
*
* @param session The used girara session
* @param item The statusbar item
* @param color The color code
* @return TRUE No error occured
* @return FALSE An error occured
*/
bool girara_statusbar_item_set_foreground(girara_session_t* session,
girara_statusbar_item_t* item, const char* color) GIRARA_DEPRECATED_;
/**
* Sets the background color of the statusbar
*
* @param session The used girara session
* @param color The color code
* @return TRUE No error occured
* @return FALSE An error occured
*/
bool girara_statusbar_set_background(girara_session_t* session,
const char* color) GIRARA_DEPRECATED_;
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment