mp3splt-gtk

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

Functions | Variables
messages.c File Reference
`#include <gtk/gtk.h>`
`#include <glib/gi18n.h>`
`#include <libmp3splt/mp3splt.h>`
`#include "main_win.h"`
Include dependency graph for messages.c:

Go to the source code of this file.

## Functions

void | add_mess_hist_tags ()
void | clear_messages_event (GtkWidget *widget, gpointer data)
void | create_mess_history_dialog ()
GtkWidget * | create_text_component ()
void | debug_check_event (GtkToggleButton *debug_toggle, gpointer user_data)
const char * | get_current_time ()
void | mess_history_hide (GtkDialog *dialog, gint response_id, gpointer data)
void | mess_history_hide2 (GtkWidget *widget, gpointer data)
void | put_message_in_history (const gchar *message, splt_message_type mess_type)

## Variables

gint | debug_is_active = FALSE
GtkTextBuffer * | mess_hist_buffer = NULL
GtkTextTagTable * | mess_hist_tag_table = NULL
GtkWidget * | mess_hist_view = NULL
GtkWidget * | mess_history_dialog = NULL
splt_state * | the_state

## Detailed Description

The messages history dialog

Definition in file messages.c.

## Function Documentation

void add_mess_hist_tags | ( |  | ) |

Add tags to the message history entry.

Definition at line 113 of file messages.c.

Referenced by create_text_component().

Here is the caller graph for this function:

void clear_messages_event | ( | GtkWidget * | widget,
|  | gpointer | data
| ) |  |

The event issued when the "Clear messages" button is clicked.

Definition at line 139 of file messages.c.

Referenced by create_text_component().

Here is the caller graph for this function:

void create_mess_history_dialog | ( |  | ) |

Create the message history dialog.

Definition at line 199 of file messages.c.

References create_text_component(), mess_history_hide(), and mess_history_hide2().

Referenced by create_main_vbox(), and mess_history_hide2().

Here is the call graph for this function:

Here is the caller graph for this function:

GtkWidget* create_text_component | ( |  | ) |

The portion of the message history dialog that contains the messages.

Definition at line 149 of file messages.c.

References add_mess_hist_tags(), clear_messages_event(), create_cool_button(), and debug_check_event().

Referenced by create_mess_history_dialog().

Here is the call graph for this function:

Here is the caller graph for this function:

void debug_check_event | ( | GtkToggleButton * | debug_toggle,
|  | gpointer | user_data
| ) |  |

The event that is issued if the user clicks on a message tag.

Definition at line 126 of file messages.c.

Referenced by create_text_component().

Here is the caller graph for this function:

const char* get_current_time | ( |  | ) |

Returns the current local time in form of a string.

Definition at line 55 of file messages.c.

Referenced by put_message_in_history().

Here is the caller graph for this function:

void mess_history_hide | ( | GtkDialog * | dialog,
|  | gint | response_id,
|  | gpointer | data
| ) |  |

Hide the message history dialog.

Definition at line 94 of file messages.c.

Referenced by create_mess_history_dialog(), and mess_history_hide2().

Here is the caller graph for this function:

void mess_history_hide2 | ( | GtkWidget * | widget,
|  | gpointer | data
| ) |  |

Hide the message history dialog.

Takes less arguments than mess_history_hide.

Todo:
  Do we really still need both functions doing the same? They do not seem to use the arguments they differ in at all

Definition at line 105 of file messages.c.

References create_mess_history_dialog(), and mess_history_hide().

Referenced by create_mess_history_dialog().

Here is the call graph for this function:

Here is the caller graph for this function:

void put_message_in_history | ( | const gchar * | message,
|  | splt_message_type | mess_type
| ) |  |

Record this message in the message history.

Definition at line 67 of file messages.c.

References get_current_time(), SPLT_MESSAGE_DEBUG, and SPLT_MESSAGE_INFO.

Referenced by put_status_message_with_type().

Here is the call graph for this function:

Here is the caller graph for this function: