Changeset 11099 for trunk/gtk/makemeta-ui.c
- Timestamp:
- Aug 2, 2010, 10:31:31 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gtk/makemeta-ui.c
r11098 r11099 382 382 static void 383 383 on_drag_data_received( GtkWidget * widget UNUSED, 384 GdkDragContext * drag_context UNUSED,384 GdkDragContext * drag_context, 385 385 gint x UNUSED, 386 386 gint y UNUSED, 387 387 GtkSelectionData * selection_data, 388 388 guint info UNUSED, 389 guint time UNUSED,389 guint time_, 390 390 gpointer user_data ) 391 391 { 392 gboolean success = FALSE; 392 393 MakeMetaUI * ui = user_data; 393 394 char ** uris = gtk_selection_data_get_uris( selection_data ); … … 403 404 gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( ui->folder_radio ), TRUE ); 404 405 gtk_file_chooser_set_current_folder( GTK_FILE_CHOOSER( ui->folder_chooser ), filename ); 406 success = TRUE; 405 407 } 406 408 else if( g_file_test( filename, G_FILE_TEST_IS_REGULAR ) ) … … 409 411 gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( ui->file_radio ), TRUE ); 410 412 gtk_file_chooser_set_filename( GTK_FILE_CHOOSER( ui->file_chooser ), filename ); 413 success = TRUE; 411 414 } 412 415 … … 415 418 416 419 g_strfreev( uris ); 420 gtk_drag_finish( drag_context, success, FALSE, time_ ); 417 421 } 418 422
Note: See TracChangeset
for help on using the changeset viewer.