+/*****************************************************************************
+ * x264_gtk_rc.c: h264 gtk encoder frontend
+ *****************************************************************************
+ * Copyright (C) 2006 Vincent Torri
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111, USA.
+ *****************************************************************************/
+
#include <gtk/gtk.h>
#include "x264_gtk_i18n.h"
/* Callbacks */
-static void _insert_numeric (GtkEditable *editable,
+static void x264_insert_numeric (GtkEditable *editable,
const gchar *text,
gint length,
gint *position,
gpointer data);
GtkWidget *
-_rate_control_page (X264_Gui_Config *config)
+x264_rate_control_page (X264_Gui_Config *config)
{
GtkWidget *vbox;
GtkWidget *frame;
config->rate_control.bitrate.keyframe_boost = gtk_entry_new_with_max_length (3);
g_signal_connect (G_OBJECT (config->rate_control.bitrate.keyframe_boost),
"insert-text",
- G_CALLBACK (_insert_numeric),
+ G_CALLBACK (x264_insert_numeric),
NULL);
gtk_table_attach_defaults (GTK_TABLE (table),
config->rate_control.bitrate.keyframe_boost,
}
static void
-_insert_numeric (GtkEditable *editable,
+x264_insert_numeric (GtkEditable *editable,
const gchar *text,
gint length,
gint *position,
result[j] = '\0';
g_signal_handlers_block_by_func (editable,
- (gpointer) _insert_numeric, data);
+ (gpointer) x264_insert_numeric, data);
gtk_editable_insert_text (editable, result, j, position);
g_signal_handlers_unblock_by_func (editable,
- (gpointer) _insert_numeric, data);
+ (gpointer) x264_insert_numeric, data);
g_signal_stop_emission_by_name (editable, "insert-text");