![]() |
![]() |
![]() |
OGMRip Gtk+ Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#include <ogmrip-source-chooser.h> #define GTK_BOX_CHILD (b) gchar * g_get_locale (gint category
); gulong g_signal_connect_data_while_alive (gpointer instance
,const gchar *detailed_signal
,GCallback c_handler
,gpointer alive
,GClosureNotify destroy_data
,GConnectFlags connect_flags
); #define g_signal_connect_while_alive (instance, detailed_signal, c_handler, alive) #define g_signal_connect_swapped_while_alive(instance, detailed_signal, c_handler, alive) void gtk_window_set_parent (GtkWindow *window
,GtkWindow *parent
); void gtk_window_set_icon_from_stock (GtkWindow *window
,const gchar *stock_id
); void gtk_dialog_response_accept (GtkDialog *dialog
); void gtk_dialog_set_response_visible (GtkDialog *dialog
,gint response_id
,gboolean setting
); gint gtk_radio_button_get_active (GtkRadioButton *radio
); void gtk_radio_button_set_active (GtkRadioButton *radio
,guint index
); gboolean gtk_tree_model_iter_prev (GtkTreeModel *tree_model
,GtkTreeIter *iter
); void gtk_label_set_int (GtkLabel *label
,gint value
); gint gtk_label_get_int (GtkLabel *label
); GtkWidget * gtk_box_get_nth_child (GtkBox *box
,gint n
); const gchar * ogmrip_get_system_profiles_dir (void
); const gchar * ogmrip_get_user_profiles_dir (void
); void ogmrip_combo_box_containers_construct (GtkComboBox *combo
); void ogmrip_combo_box_add_containers (GtkComboBox *combo
); GType ogmrip_combo_box_get_active_container (GtkComboBox *combo
); void ogmrip_combo_box_set_active_container (GtkComboBox *combo
,const gchar *container
); void ogmrip_combo_box_video_codecs_construct (GtkComboBox *combo
); void ogmrip_combo_box_add_video_codecs (GtkComboBox *combo
,GType container
); GType ogmrip_combo_box_get_active_video_codec (GtkComboBox *combo
); void ogmrip_combo_box_set_active_video_codec (GtkComboBox *combo
,const gchar *codec
); void ogmrip_combo_box_audio_codecs_construct (GtkComboBox *combo
); void ogmrip_combo_box_add_audio_codecs (GtkComboBox *combo
,GType container
); GType ogmrip_combo_box_get_active_audio_codec (GtkComboBox *combo
); void ogmrip_combo_box_set_active_audio_codec (GtkComboBox *combo
,const gchar *codec
); void ogmrip_combo_box_subp_codecs_construct (GtkComboBox *combo
); void ogmrip_combo_box_add_subp_codecs (GtkComboBox *combo
,GType container
); GType ogmrip_combo_box_get_active_subp_codec (GtkComboBox *combo
); void ogmrip_combo_box_set_active_subp_codec (GtkComboBox *combo
,const gchar *codec
); void ogmrip_combo_box_languages_construct (GtkComboBox *combo
,const gchar *default_text
); GtkWidget * ogmrip_message_dialog_new (GtkWindow *parent
,GtkMessageType type
,const gchar *format
,...
); gint ogmrip_message_dialog (GtkWindow *parent
,GtkMessageType type
,const gchar *format
,...
); GtkWidget * ogmrip_load_dvd_dialog_new (GtkWindow *parent
,OGMDvdDisc *disc
,const gchar *name
,gboolean cancellable
);
gchar * g_get_locale (gint category
);
Returns the active source and its type.
|
A pointer to store the type of the chooser |
Returns : |
The active OGMRipSource |
gulong g_signal_connect_data_while_alive (gpointer instance
,const gchar *detailed_signal
,GCallback c_handler
,gpointer alive
,GClosureNotify destroy_data
,GConnectFlags connect_flags
);
Connects a GCallback function to a signal for a particular object automatically
disconnecting it when alive
is destroyed.
|
the instance to connect to |
|
a string of the form "signal-name::detail" |
|
the GCallback to connect |
|
the instance to check for |
|
a GClosureNotify for data |
|
a combination of GConnectFlags |
Returns : |
the handler id |
#define g_signal_connect_while_alive(instance, detailed_signal, c_handler, alive)
Connects a GCallback function to a signal for a particular object automatically
disconnecting it when alive
is destroyed.
|
the instance to connect to |
|
a string of the form "signal-name::detail" |
|
the GCallback to connect |
|
the instance to check for |
Returns : |
the handler id |
#define g_signal_connect_swapped_while_alive(instance, detailed_signal, c_handler, alive)
Connects a GCallback function to a signal for a particular object automatically
disconnecting it when alive
is destroyed.
|
the instance to connect to |
|
a string of the form "signal-name::detail" |
|
the GCallback to connect |
|
the instance to check for |
Returns : |
the handler id |
void gtk_window_set_parent (GtkWindow *window
,GtkWindow *parent
);
Sets a parent window for a window. This is equivalent to calling
gtk_window_set_transient_for()
,
gtk_window_set_position()
,
gtk_window_set_gravity()
, and
gtk_window_set_destroy_with_parent()
on window
.
|
A GtkWindow |
|
The parent window |
void gtk_window_set_icon_from_stock (GtkWindow *window
,const gchar *stock_id
);
Sets the icon of window
from a stock item.
|
A GtkWindow |
|
the name of the stock item |
void gtk_dialog_response_accept (GtkDialog *dialog
);
Emits the "response" signal with GTK_RESPONSE_ACCEPT.
|
a GtkDialog |
void gtk_dialog_set_response_visible (GtkDialog *dialog
,gint response_id
,gboolean setting
);
Sets the <literal>visible</literal> property of
each widget in the dialog's action area with the given response_id
.
A convenient way to show/hide dialog buttons.
gint gtk_radio_button_get_active (GtkRadioButton *radio
);
Returns the index of the active GtkRadioButton.
|
Any GtkRadioButton of the group |
Returns : |
An integer, or -1 |
void gtk_radio_button_set_active (GtkRadioButton *radio
,guint index
);
Sets the active item of the radio group.
|
Any GtkRadioButton of the group |
|
The index of the active item |
gboolean gtk_tree_model_iter_prev (GtkTreeModel *tree_model
,GtkTreeIter *iter
);
Sets iter
to point to the node preceding it at the current level.
If there is no previous iter
, FALSE
is returned and iter
is set to be invalid.
|
A GtkTreeModel |
|
The GtkTreeIter |
Returns : |
TRUE , if iter has been changed to the previous node |
void gtk_label_set_int (GtkLabel *label
,gint value
);
Sets the value of a GtkLabel widget.
|
A GtkLabel |
|
An integer |
gint gtk_label_get_int (GtkLabel *label
);
Gets the value of the label
represented as an integer.
|
A GtkLabel |
Returns : |
The value of the label widget |
GtkWidget * gtk_box_get_nth_child (GtkBox *box
,gint n
);
Returns the n
'th item in box
.
const gchar * ogmrip_get_system_profiles_dir (void
);
Return the system directory containing profiles.
Returns : |
a directory, or NULL |
const gchar * ogmrip_get_user_profiles_dir (void
);
Return the user directory containing profiles.
Returns : |
a directory, or NULL |
void ogmrip_combo_box_containers_construct
(GtkComboBox *combo
);
Configures a combo
to store containers.
|
A GtkComboBox |
void ogmrip_combo_box_add_containers (GtkComboBox *combo
);
Populates combo
with all known containers.
|
A GtkComboBox |
GType ogmrip_combo_box_get_active_container
(GtkComboBox *combo
);
Returns the selected container.
|
A GtkComboBox |
Returns : |
a container type, or G_TYPE_NONE |
void ogmrip_combo_box_set_active_container (GtkComboBox *combo
,const gchar *container
);
Selects the container with the given name
.
|
A GtkComboBox |
|
The name of the container |
void ogmrip_combo_box_video_codecs_construct
(GtkComboBox *combo
);
Configures a combo
to store video codecs.
|
A GtkComboBox |
void ogmrip_combo_box_add_video_codecs (GtkComboBox *combo
,GType container
);
Populates combo
with all video codecs compatible with container
.
|
A GtkComboBox |
|
A container |
GType ogmrip_combo_box_get_active_video_codec
(GtkComboBox *combo
);
Returns the selected video codec.
|
A GtkComboBox |
Returns : |
a video type, or G_TYPE_NONE |
void ogmrip_combo_box_set_active_video_codec (GtkComboBox *combo
,const gchar *codec
);
Selects the video codec with the given name
.
|
A GtkComboBox |
|
The name of the video codec |
void ogmrip_combo_box_audio_codecs_construct
(GtkComboBox *combo
);
Configures a combo
to store audio codecs.
|
A GtkComboBox |
void ogmrip_combo_box_add_audio_codecs (GtkComboBox *combo
,GType container
);
Populates combo
with all audio codecs compatible with container
.
|
A GtkComboBox |
|
A container |
GType ogmrip_combo_box_get_active_audio_codec
(GtkComboBox *combo
);
Returns the selected audio codec.
|
A GtkComboBox |
Returns : |
an audio type, or G_TYPE_NONE |
void ogmrip_combo_box_set_active_audio_codec (GtkComboBox *combo
,const gchar *codec
);
Selects the audio codec with the given name
.
|
A GtkComboBox |
|
The name of the audio codec |
void ogmrip_combo_box_subp_codecs_construct
(GtkComboBox *combo
);
Configures a combo
to store subp codecs.
|
A GtkComboBox |
void ogmrip_combo_box_add_subp_codecs (GtkComboBox *combo
,GType container
);
Populates combo
with all subp codecs compatible with container
.
|
A GtkComboBox |
|
A container |
GType ogmrip_combo_box_get_active_subp_codec
(GtkComboBox *combo
);
Returns the selected subp codec.
|
A GtkComboBox |
Returns : |
a subp type, or G_TYPE_NONE |
void ogmrip_combo_box_set_active_subp_codec (GtkComboBox *combo
,const gchar *codec
);
Selects the subp codec with the given name
.
|
A GtkComboBox |
|
The name of the subp codec |
void ogmrip_combo_box_languages_construct (GtkComboBox *combo
,const gchar *default_text
);
Configures a combo
to store languages.
|
a GtkComboBox |
|
the default text |
GtkWidget * ogmrip_message_dialog_new (GtkWindow *parent
,GtkMessageType type
,const gchar *format
,...
);
Creates a new message dialog, which is a simple dialog with an icon indicating the dialog type (error, warning, etc.) and some text the user may want to see.
|
A GtkWindow |
|
A GtkMessageType |
|
printf()-style format string, or NULL |
|
Arguments for format
|
Returns : |
A new GtkMessageDialog |
gint ogmrip_message_dialog (GtkWindow *parent
,GtkMessageType type
,const gchar *format
,...
);
Creates and displays a new message dialog, which is a simple dialog with an icon indicating the dialog type (error, warning, etc.) and some text the user may want to see.
|
A GtkWindow |
|
A GtkMessageType |
|
printf()-style format string, or NULL |
|
Arguments for format
|
Returns : |
The response ID |
GtkWidget * ogmrip_load_dvd_dialog_new (GtkWindow *parent
,OGMDvdDisc *disc
,const gchar *name
,gboolean cancellable
);
Creates a dialog waiting for the given DVD to be inserted.
|
Transient parent of the dialog, or NULL |
|
An OGMDvdDisc |
|
The name of the DVD |
|
Whether the dialog is cancellable |
Returns : |
a newly created dialog |