empathy r1072 - in trunk: libempathy src
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r1072 - in trunk: libempathy src
- Date: Thu, 1 May 2008 23:02:48 +0100 (BST)
Author: xclaesse
Date: Thu May 1 22:02:48 2008
New Revision: 1072
URL: http://svn.gnome.org/viewvc/empathy?rev=1072&view=rev
Log:
Keypad is unsensitive if the call is not ACCEPTED
Modified:
trunk/libempathy/empathy-tp-call.c
trunk/src/empathy-call-window.c
trunk/src/empathy-call-window.glade
Modified: trunk/libempathy/empathy-tp-call.c
==============================================================================
--- trunk/libempathy/empathy-tp-call.c (original)
+++ trunk/libempathy/empathy-tp-call.c Thu May 1 22:02:48 2008
@@ -817,7 +817,7 @@
EmpathyTpCallPriv *priv = GET_PRIV (call);
g_return_if_fail (EMPATHY_IS_TP_CALL (call));
- g_return_if_fail (priv->status != EMPATHY_TP_CALL_STATUS_ACCEPTED);
+ g_return_if_fail (priv->status == EMPATHY_TP_CALL_STATUS_ACCEPTED);
if (!priv->audio->exists)
return;
@@ -834,7 +834,7 @@
EmpathyTpCallPriv *priv = GET_PRIV (call);
g_return_if_fail (EMPATHY_IS_TP_CALL (call));
- g_return_if_fail (priv->status != EMPATHY_TP_CALL_STATUS_ACCEPTED);
+ g_return_if_fail (priv->status == EMPATHY_TP_CALL_STATUS_ACCEPTED);
if (!priv->audio->exists)
return;
Modified: trunk/src/empathy-call-window.c
==============================================================================
--- trunk/src/empathy-call-window.c (original)
+++ trunk/src/empathy-call-window.c Thu May 1 22:02:48 2008
@@ -58,6 +58,7 @@
GtkWidget *video_button;
GtkWidget *hang_up_button;
GtkWidget *confirmation_dialog;
+ GtkWidget *keypad_expander;
} EmpathyCallWindow;
static gboolean
@@ -140,6 +141,7 @@
gtk_widget_set_sensitive (window->video_button, FALSE);
gtk_widget_set_sensitive (window->output_volume_button, FALSE);
gtk_widget_set_sensitive (window->input_volume_button, FALSE);
+ gtk_widget_set_sensitive (window->keypad_expander, FALSE);
if (window->call)
{
@@ -365,6 +367,7 @@
gtk_widget_set_sensitive (window->output_volume_button, FALSE);
gtk_widget_set_sensitive (window->input_volume_button, FALSE);
gtk_widget_set_sensitive (window->hang_up_button, FALSE);
+ gtk_widget_set_sensitive (window->keypad_expander, FALSE);
}
else if (window->status == EMPATHY_TP_CALL_STATUS_PENDING)
{
@@ -410,6 +413,7 @@
gtk_widget_set_sensitive (window->output_volume_button, TRUE);
gtk_widget_set_sensitive (window->input_volume_button, TRUE);
gtk_widget_set_sensitive (window->hang_up_button, TRUE);
+ gtk_widget_set_sensitive (window->keypad_expander, TRUE);
}
else if (window->status == EMPATHY_TP_CALL_STATUS_CLOSED)
call_window_finalize (window);
@@ -480,6 +484,7 @@
"status_label", &window->status_label,
"video_button", &window->video_button,
"hang_up_button", &window->hang_up_button,
+ "keypad_expander", &window->keypad_expander,
NULL);
g_free (filename);
Modified: trunk/src/empathy-call-window.glade
==============================================================================
--- trunk/src/empathy-call-window.glade (original)
+++ trunk/src/empathy-call-window.glade Thu May 1 22:02:48 2008
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
-<!--Generated with glade3 3.4.2 on Thu May 1 22:33:28 2008 -->
+<!--Generated with glade3 3.4.2 on Thu May 1 23:37:49 2008 -->
<glade-interface>
<widget class="GtkWindow" id="window">
<child>
@@ -62,190 +62,190 @@
</packing>
</child>
<child>
- <widget class="GtkExpander" id="expander1">
+ <widget class="GtkExpander" id="keypad_expander">
<property name="visible">True</property>
<property name="can_focus">True</property>
<child>
- <widget class="GtkTable" id="table2">
+ <widget class="GtkTable" id="keypad_table">
<property name="visible">True</property>
<property name="n_rows">4</property>
<property name="n_columns">3</property>
<property name="homogeneous">True</property>
<child>
- <widget class="GtkButton" id="button_hash">
+ <widget class="GtkButton" id="button_1">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="label" translatable="yes">#</property>
+ <property name="label" translatable="yes">1</property>
<property name="use_underline">True</property>
<property name="response_id">0</property>
</widget>
<packing>
- <property name="left_attach">2</property>
- <property name="right_attach">3</property>
- <property name="top_attach">3</property>
- <property name="bottom_attach">4</property>
<property name="y_options"></property>
</packing>
</child>
<child>
- <widget class="GtkButton" id="button_0">
+ <widget class="GtkButton" id="button_2">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="label" translatable="yes">0</property>
+ <property name="label" translatable="yes">2</property>
<property name="use_underline">True</property>
<property name="response_id">0</property>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
- <property name="top_attach">3</property>
- <property name="bottom_attach">4</property>
<property name="y_options"></property>
</packing>
</child>
<child>
- <widget class="GtkButton" id="button_asterisk">
+ <widget class="GtkButton" id="button_3">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="label" translatable="yes">*</property>
+ <property name="label" translatable="yes">3</property>
<property name="use_underline">True</property>
<property name="response_id">0</property>
</widget>
<packing>
- <property name="top_attach">3</property>
- <property name="bottom_attach">4</property>
+ <property name="left_attach">2</property>
+ <property name="right_attach">3</property>
<property name="y_options"></property>
</packing>
</child>
<child>
- <widget class="GtkButton" id="button_9">
+ <widget class="GtkButton" id="button_4">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="label" translatable="yes">9</property>
+ <property name="label" translatable="yes">4</property>
<property name="use_underline">True</property>
<property name="response_id">0</property>
</widget>
<packing>
- <property name="left_attach">2</property>
- <property name="right_attach">3</property>
- <property name="top_attach">2</property>
- <property name="bottom_attach">3</property>
+ <property name="top_attach">1</property>
+ <property name="bottom_attach">2</property>
<property name="y_options"></property>
</packing>
</child>
<child>
- <widget class="GtkButton" id="button_8">
+ <widget class="GtkButton" id="button_5">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="label" translatable="yes">8</property>
+ <property name="label" translatable="yes">5</property>
<property name="use_underline">True</property>
<property name="response_id">0</property>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
- <property name="top_attach">2</property>
- <property name="bottom_attach">3</property>
+ <property name="top_attach">1</property>
+ <property name="bottom_attach">2</property>
<property name="y_options"></property>
</packing>
</child>
<child>
- <widget class="GtkButton" id="button_7">
+ <widget class="GtkButton" id="button_6">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="label" translatable="yes">7</property>
+ <property name="label" translatable="yes">6</property>
<property name="use_underline">True</property>
<property name="response_id">0</property>
</widget>
<packing>
- <property name="top_attach">2</property>
- <property name="bottom_attach">3</property>
+ <property name="left_attach">2</property>
+ <property name="right_attach">3</property>
+ <property name="top_attach">1</property>
+ <property name="bottom_attach">2</property>
<property name="y_options"></property>
</packing>
</child>
<child>
- <widget class="GtkButton" id="button_6">
+ <widget class="GtkButton" id="button_7">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="label" translatable="yes">6</property>
+ <property name="label" translatable="yes">7</property>
<property name="use_underline">True</property>
<property name="response_id">0</property>
</widget>
<packing>
- <property name="left_attach">2</property>
- <property name="right_attach">3</property>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
+ <property name="top_attach">2</property>
+ <property name="bottom_attach">3</property>
<property name="y_options"></property>
</packing>
</child>
<child>
- <widget class="GtkButton" id="button_5">
+ <widget class="GtkButton" id="button_8">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="label" translatable="yes">5</property>
+ <property name="label" translatable="yes">8</property>
<property name="use_underline">True</property>
<property name="response_id">0</property>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
+ <property name="top_attach">2</property>
+ <property name="bottom_attach">3</property>
<property name="y_options"></property>
</packing>
</child>
<child>
- <widget class="GtkButton" id="button_4">
+ <widget class="GtkButton" id="button_9">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="label" translatable="yes">4</property>
+ <property name="label" translatable="yes">9</property>
<property name="use_underline">True</property>
<property name="response_id">0</property>
</widget>
<packing>
- <property name="top_attach">1</property>
- <property name="bottom_attach">2</property>
+ <property name="left_attach">2</property>
+ <property name="right_attach">3</property>
+ <property name="top_attach">2</property>
+ <property name="bottom_attach">3</property>
<property name="y_options"></property>
</packing>
</child>
<child>
- <widget class="GtkButton" id="button_3">
+ <widget class="GtkButton" id="button_asterisk">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="label" translatable="yes">3</property>
+ <property name="label" translatable="yes">*</property>
<property name="use_underline">True</property>
<property name="response_id">0</property>
</widget>
<packing>
- <property name="left_attach">2</property>
- <property name="right_attach">3</property>
+ <property name="top_attach">3</property>
+ <property name="bottom_attach">4</property>
<property name="y_options"></property>
</packing>
</child>
<child>
- <widget class="GtkButton" id="button_2">
+ <widget class="GtkButton" id="button_0">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="label" translatable="yes">2</property>
+ <property name="label" translatable="yes">0</property>
<property name="use_underline">True</property>
<property name="response_id">0</property>
</widget>
<packing>
<property name="left_attach">1</property>
<property name="right_attach">2</property>
+ <property name="top_attach">3</property>
+ <property name="bottom_attach">4</property>
<property name="y_options"></property>
</packing>
</child>
<child>
- <widget class="GtkButton" id="button_1">
+ <widget class="GtkButton" id="button_hash">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="label" translatable="yes">1</property>
+ <property name="label" translatable="yes">#</property>
<property name="use_underline">True</property>
<property name="response_id">0</property>
</widget>
<packing>
+ <property name="left_attach">2</property>
+ <property name="right_attach">3</property>
+ <property name="top_attach">3</property>
+ <property name="bottom_attach">4</property>
<property name="y_options"></property>
</packing>
</child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]