Changeset 1308
- Timestamp:
- 03/09/07 19:27:21 (6 years ago)
- Location:
- trunk/src/target/OM-2007/applications/openmoko-dialer/src
- Files:
-
- 7 edited
-
openmoko-dialer-main.c (modified) (3 diffs)
-
openmoko-dialer-window-dialer.c (modified) (2 diffs)
-
openmoko-dialer-window-history.c (modified) (5 diffs)
-
openmoko-dialer-window-incoming.c (modified) (1 diff)
-
openmoko-dialer-window-outgoing.c (modified) (4 diffs)
-
openmoko-dialer-window-pin.c (modified) (1 diff)
-
openmoko-dialer-window-talking.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/target/OM-2007/applications/openmoko-dialer/src/openmoko-dialer-main.c
r1298 r1308 249 249 } 250 250 251 static gboolean show_gui; 252 253 static GOptionEntry entries[] = 254 { 255 { "show-gui", 's', 0, G_OPTION_ARG_NONE, &show_gui, "Show the GUI at startup (default off)", "N" }, 256 { NULL } 257 }; 258 259 251 260 int main( int argc, char** argv ) 252 261 { … … 259 268 { 260 269 /* Add init code. */ 270 GError *error = NULL; 271 GOptionContext *context = g_option_context_new (""); 272 273 g_option_context_add_main_entries (context, entries, NULL); 274 g_option_context_add_group (context, gtk_get_option_group (TRUE)); 275 g_option_context_parse (context, &argc, &argv, &error); 276 277 g_option_context_free (context); 261 278 } 262 279 lockapp = testlock ("/tmp/dialer.lock"); … … 298 315 DBG_MSG ("\nusage: \"openmoko-dialer\" will not show any GUI initialy until you reactivate the app using another \"openmoko-dialer\" command"); 299 316 300 317 if (show_gui) 318 { 319 handle_sigusr1 (SIGUSR1); 320 } 301 321 302 322 //from now on we will not use multithreads. -
trunk/src/target/OM-2007/applications/openmoko-dialer/src/openmoko-dialer-window-dialer.c
r1216 r1308 91 91 92 92 //start dialling. 93 gtk_widget_show (appdata->window_history);93 gtk_widget_show_all (appdata->window_history); 94 94 95 95 } … … 148 148 149 149 //start dialling. 150 gtk_widget_show (appdata->window_outgoing);150 gtk_widget_show_all (appdata->window_outgoing); 151 151 152 152 g_free (codesinput); -
trunk/src/target/OM-2007/applications/openmoko-dialer/src/openmoko-dialer-window-history.c
r1171 r1308 363 363 364 364 //FIXME: without gtk_widget_show_all first and then hide, the history view will not show properly. -tony 365 gtk_widget_show_all(GTK_WIDGET(window));365 //gtk_widget_show_all(GTK_WIDGET(window)); 366 366 367 367 //now the wheel and tool box, why should the wheel and toolbox created after the gtk_widget_show_all??? … … 379 379 380 380 g_signal_connect (G_OBJECT (moko_finger_window_get_wheel (window)), 381 "pre ss_bottom",381 "prehttp://planet.gnome.org/ss_bottom", 382 382 G_CALLBACK (cb_tool_button_history_back_clicked), 383 383 p_dialer_data); … … 387 387 388 388 /* TODO: remove the GTK_WIDGET() casts when libmokoui is fixed */ 389 button = 390 GTK_WIDGET (moko_finger_tool_box_add_button_without_label (tools)); 389 button = moko_finger_tool_box_add_button_without_label (tools); 391 390 image = file_new_image_from_relative_path ("phone.png"); 392 391 moko_pixmap_button_set_finger_toolbox_btn_center_image (MOKO_PIXMAP_BUTTON … … 414 413 G_CALLBACK (cb_tool_button_history_delete_clicked), 415 414 p_dialer_data); 416 //gtk_widget_show (GTK_WIDGET (tools));417 418 415 button = 419 416 GTK_WIDGET (moko_finger_tool_box_add_button_without_label (tools)); … … 425 422 p_dialer_data); 426 423 427 //gtk_widget_show (GTK_WIDGET (tools));428 429 424 p_dialer_data->wheel_history = GTK_WIDGET (moko_finger_window_get_wheel (window)); 430 425 p_dialer_data->toolbox_history = GTK_WIDGET (tools); 431 gtk_widget_hide(GTK_WIDGET(window));432 426 DBG_LEAVE (); 433 427 } -
trunk/src/target/OM-2007/applications/openmoko-dialer/src/openmoko-dialer-window-incoming.c
r1298 r1308 292 292 293 293 294 gtk_widget_show_all (GTK_WIDGET (window));295 296 297 gtk_widget_hide (GTK_WIDGET (window));298 299 300 294 moko_dialer_status_set_title_label (MOKO_DIALER_STATUS (status), "Incoming call"); 301 295 moko_dialer_status_set_status_label (MOKO_DIALER_STATUS (status), ""); -
trunk/src/target/OM-2007/applications/openmoko-dialer/src/openmoko-dialer-window-outgoing.c
r1216 r1308 54 54 55 55 56 //transfer the contact info56 //transfer the contact info 57 57 window_talking_prepare (appdata); 58 58 59 //start dialling.59 //start dialling. 60 60 61 61 DBG_TRACE (); 62 gtk_widget_show (appdata->window_talking);62 gtk_widget_show_all (appdata->window_talking); 63 63 64 64 … … 282 282 g_signal_connect (G_OBJECT (button), "clicked", 283 283 G_CALLBACK (cb_redial_button_clicked), p_dialer_data); 284 //gtk_widget_set_size_request(button,100,32);285 284 gtk_box_pack_start (GTK_BOX (hbox2), GTK_WIDGET (button), TRUE, TRUE, 40); 286 //gtk_widget_set_size_request(button,60,24);285 g_object_set (G_OBJECT (button), "no-show-all", TRUE, NULL); 287 286 288 287 … … 295 294 gtk_box_pack_start (GTK_BOX (hbox2), GTK_WIDGET (button), TRUE, TRUE, 40); 296 295 297 298 299 300 296 gtk_box_pack_start (GTK_BOX (vbox), hbox2, FALSE, FALSE, 50); 301 297 … … 308 304 gtk_window_set_decorated(GTK_WINDOW(window ),FALSE); //FIXME: this line seems only necessary on my PC. tony 309 305 moko_finger_window_set_contents (window, GTK_WIDGET (vbox)); 310 311 312 gtk_widget_show_all (GTK_WIDGET (window));313 314 gtk_widget_hide (p_dialer_data->buttonRedial);315 316 317 gtk_widget_hide (GTK_WIDGET (window));318 319 306 320 307 moko_dialer_status_set_title_label (MOKO_DIALER_STATUS (status), "Outgoing call"); -
trunk/src/target/OM-2007/applications/openmoko-dialer/src/openmoko-dialer-window-pin.c
r1171 r1308 219 219 p_dialer_data->window_pin = window; 220 220 221 gtk_widget_show_all (GTK_WIDGET (window));222 gtk_widget_hide (GTK_WIDGET (window));223 224 225 221 } 226 222 -
trunk/src/target/OM-2007/applications/openmoko-dialer/src/openmoko-dialer-window-talking.c
r1171 r1308 350 350 gtk_box_pack_start (GTK_BOX (vbox), content_dtmf, FALSE, FALSE, 0); 351 351 p_dialer_data->content_dtmf = content_dtmf; 352 353 354 //now the container--window 352 g_object_set (G_OBJECT (content_dtmf), "no-show-all", TRUE); 353 354 355 //now the container--window 355 356 window = MOKO_FINGER_WINDOW (moko_finger_window_new ()); 356 357 gtk_window_set_decorated(GTK_WINDOW(window ),FALSE); … … 363 364 364 365 365 366 367 gtk_widget_show_all (GTK_WIDGET (window));368 369 //the gtk_widget_show_all is really bad, cause i have to call it and then hide some widgets.370 371 gtk_widget_hide (content_dtmf);372 373 374 366 //now the wheel and tool box, why should the wheel and toolbox created after the gtk_widget_show_all??? 375 // gtk_widget_show(GTK_WIDGET(moko_finger_window_get_wheel(window)));376 367 wheel=moko_finger_window_get_wheel (window); 377 368 g_signal_connect (G_OBJECT (wheel), … … 419 410 p_dialer_data->toolbox_talking = GTK_WIDGET (tools); 420 411 421 //gtk_widget_hide(window);422 423 424 412 DBG_LEAVE (); 425 413 }
Note: See TracChangeset
for help on using the changeset viewer.
