diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2008-05-02 06:02:48 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-05-02 06:02:48 +0800 |
commit | 6d23f46e64152fa219b5ad8a5455996b36e9c6db (patch) | |
tree | a84cc8c5f884d0d98cbfcb83eba5e061ae57f0f2 /src | |
parent | 16bb46bc5b1efb53ea813e3e1351fbbdc8b02fe3 (diff) | |
download | gsoc2013-empathy-6d23f46e64152fa219b5ad8a5455996b36e9c6db.tar gsoc2013-empathy-6d23f46e64152fa219b5ad8a5455996b36e9c6db.tar.gz gsoc2013-empathy-6d23f46e64152fa219b5ad8a5455996b36e9c6db.tar.bz2 gsoc2013-empathy-6d23f46e64152fa219b5ad8a5455996b36e9c6db.tar.lz gsoc2013-empathy-6d23f46e64152fa219b5ad8a5455996b36e9c6db.tar.xz gsoc2013-empathy-6d23f46e64152fa219b5ad8a5455996b36e9c6db.tar.zst gsoc2013-empathy-6d23f46e64152fa219b5ad8a5455996b36e9c6db.zip |
Keypad is unsensitive if the call is not ACCEPTED
svn path=/trunk/; revision=1072
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy-call-window.c | 5 | ||||
-rw-r--r-- | src/empathy-call-window.glade | 106 |
2 files changed, 58 insertions, 53 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c index cddb11433..2d52fcf7c 100644 --- a/src/empathy-call-window.c +++ b/src/empathy-call-window.c @@ -58,6 +58,7 @@ typedef struct GtkWidget *video_button; GtkWidget *hang_up_button; GtkWidget *confirmation_dialog; + GtkWidget *keypad_expander; } EmpathyCallWindow; static gboolean @@ -140,6 +141,7 @@ call_window_finalize (EmpathyCallWindow *window) 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 @@ call_window_update (EmpathyCallWindow *window) 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 @@ call_window_update (EmpathyCallWindow *window) 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 @@ empathy_call_window_new (EmpathyTpCall *call) "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); diff --git a/src/empathy-call-window.glade b/src/empathy-call-window.glade index 8e62c6c32..684aed3ce 100644 --- a/src/empathy-call-window.glade +++ b/src/empathy-call-window.glade @@ -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> |