]> git.sesse.net Git - x264/blobdiff - gtk/x264_gtk_rc.c
Make x264 progress indicator more concise
[x264] / gtk / x264_gtk_rc.c
index cd01138892de36db2bdb1353c928a5a6219ab93c..5f9711beda717fac0c5bdb0fb1768b6632726be6 100644 (file)
@@ -1,3 +1,23 @@
+/*****************************************************************************
+ * 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;
@@ -54,7 +74,7 @@ _rate_control_page (X264_Gui_Config *config)
   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,
@@ -318,7 +338,7 @@ _rate_control_page (X264_Gui_Config *config)
 }
 
 static void
-_insert_numeric (GtkEditable *editable,
+x264_insert_numeric (GtkEditable *editable,
                  const gchar *text,
                  gint         length,
                  gint        *position,
@@ -343,10 +363,10 @@ _insert_numeric (GtkEditable *editable,
   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");