~ubuntu-branches/ubuntu/raring/ekiga/raring-proposed

« back to all changes in this revision

Viewing changes to lib/engine/gui/gtk-core/codecsbox.cpp

  • Committer: Package Import Robot
  • Author(s): Kilian Krause, Eugen Dedu, Kilian Krause
  • Date: 2013-03-02 13:06:36 UTC
  • mfrom: (5.1.8)
  • Revision ID: package-import@ubuntu.com-20130302130636-8f3gtgju4duvkvod
Tags: 4.0.1-1
[ Eugen Dedu ]
* New upstream stable release
* Really add ekiga-plugin-evolution package (Closes: 520830)

[ Kilian Krause ]
* Add missing ${shlibs:Depends} to ekiga-plugin-evolution
* Fix debhelper build-depends (upgrade to >=9) due to compat level

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 *                         codecsbox.c  -  description
31
31
 *                         -------------------------------
32
32
 *   begin                : Sat Sep 2 2006
33
 
 *   copyright            : (C) 2000-2006 by Damien Sandras 
 
33
 *   copyright            : (C) 2000-2006 by Damien Sandras
34
34
 *   description          : Contains a codecs box widget
35
35
 *
36
36
 */
40
40
 
41
41
#include "gmconf.h"
42
42
#include "codec-description.h"
43
 
#include <cstdlib>
44
 
#include <cstring>
45
 
#include <sstream>
46
43
 
47
44
/* Columns for the codecs page */
48
45
enum {
49
46
 
50
47
  COLUMN_CODEC_ACTIVE,
51
 
  COLUMN_CODEC_NAME, 
 
48
  COLUMN_CODEC_NAME,
52
49
  COLUMN_CODEC_CLOCKRATE,
53
50
  COLUMN_CODEC_PROTOCOLS,
54
51
  COLUMN_CODEC_CONFIG_NAME,
77
74
                              gchar *path_str,
78
75
                              gpointer data);
79
76
 
80
 
static void codec_moved_cb (GtkWidget *widget, 
 
77
static void codec_moved_cb (GtkWidget *widget,
81
78
                            gpointer data);
82
79
 
83
80
static GSList *codecs_box_to_gm_conf_list (CodecsBox *self);
98
95
                                     const GValue *value,
99
96
                                     GParamSpec *spec);
100
97
 
101
 
static void 
 
98
static void
102
99
codecs_box_set_codecs (CodecsBox *self,
103
100
                       GSList *list)
104
101
{
118
115
 
119
116
  selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (self->priv->codecs_list));
120
117
 
121
 
  if (gtk_tree_selection_get_selected (selection, &model, &iter)) 
 
118
  if (gtk_tree_selection_get_selected (selection, &model, &iter))
122
119
    gtk_tree_model_get (GTK_TREE_MODEL (model), &iter,
123
 
                        COLUMN_CODEC_NAME, &selected_codec, 
 
120
                        COLUMN_CODEC_NAME, &selected_codec,
124
121
                        COLUMN_CODEC_CLOCKRATE, &select_rate, -1);
125
122
  gtk_list_store_clear (GTK_LIST_STORE (model));
126
123
 
238
235
  path_str = gtk_tree_model_get_string_from_iter (GTK_TREE_MODEL (model), 
239
236
                                                  &iter);
240
237
  tree_path = gtk_tree_path_new_from_string (path_str);
241
 
  if (!strcmp ((gchar *) g_object_get_data (G_OBJECT (widget), "operation"), 
 
238
  if (!g_strcmp0 ((gchar *) g_object_get_data (G_OBJECT (widget), "operation"), 
242
239
               "up"))
243
240
    gtk_tree_path_prev (tree_path);
244
241
  else