]> sjero.net Git - linphone/commitdiff
Add dialer pixmap
authorMargaux Clerc <margaux.clerc@belledonne-communications.com>
Wed, 6 Feb 2013 09:48:34 +0000 (10:48 +0100)
committerMargaux Clerc <margaux.clerc@belledonne-communications.com>
Wed, 6 Feb 2013 09:49:05 +0000 (10:49 +0100)
gtk/main.c
gtk/main.ui
pixmaps/Makefile.am
pixmaps/dialer.png [new file with mode: 0644]

index 520af7b5a10158829c28e5718c3278492f64be6f..cfbd8983fe36009aa635b948796ecda67d632c37 100644 (file)
@@ -1559,19 +1559,13 @@ static void linphone_gtk_configure_main_window(){
                }
                */
        }
-       /*{
-               GdkPixbuf *pbuf=create_pixbuf("dialer-orange.png");
+       {
+               GdkPixbuf *pbuf=create_pixbuf("dialer.png");
                if (pbuf) {
-                       GtkImage *img=GTK_IMAGE(linphone_gtk_get_widget(w,"keypad_tab_icon"));
-                       int w,h;
-                       GdkPixbuf *scaled;
-                       gtk_icon_size_lookup(GTK_ICON_SIZE_MENU,&w,&h);
-                       scaled=gdk_pixbuf_scale_simple(pbuf,w,h,GDK_INTERP_BILINEAR);
-                       gtk_image_set_from_pixbuf(img,scaled);
-                       g_object_unref(G_OBJECT(scaled));
-                       g_object_unref(G_OBJECT(pbuf));
+                       GtkButton *button=GTK_BUTTON(linphone_gtk_get_widget(w,"keypad"));
+                       gtk_button_set_image(button,gtk_image_new_from_pixbuf (pbuf));
                }
-       }*/
+       }
        if (linphone_gtk_can_manage_accounts()) {
                gtk_widget_show(linphone_gtk_get_widget(w,"assistant_item"));
        }
index 5e84bcc218c8b750fb8fb8d96cebebad0489b9a6..6c15688c2169a30ab3ab5994144429ab8e4570aa 100644 (file)
                       </packing>
                     </child>
                     <child>
-                      <object class="GtkButton" id="dialpad">
+                      <object class="GtkButton" id="keypad">
                         <property name="visible">True</property>
                         <property name="can_focus">True</property>
                         <property name="receives_default">True</property>
                         <property name="use_action_appearance">False</property>
+                        <signal name="clicked" handler="linphone_gtk_create_keypad" swapped="no"/>
                       </object>
                       <packing>
                         <property name="expand">False</property>
index 186254c1195ce8e855fa0f94da4241a82d3df247..d10d48222cff8416840a8331a5f040be81b95f80 100644 (file)
@@ -18,6 +18,7 @@ startcall-green.png startcall-small.png stopcall-red.png stopcall-small.png addc
 contact_starred.png contact_unstarred.png \
 speaker.png \
 ok.png \
+dialer.png \
 notok.png
 
 EXTRA_DIST=$(pixmap_DATA)
diff --git a/pixmaps/dialer.png b/pixmaps/dialer.png
new file mode 100644 (file)
index 0000000..5da3ad7
Binary files /dev/null and b/pixmaps/dialer.png differ