Changeset 1587


Ignore:
Timestamp:
Mar 24, 2007, 10:20:00 AM (15 years ago)
Author:
joshe
Message:

Set roles for non-dialog windows to help WMs out a bit.

Location:
trunk/gtk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/dialogs.c

    r1518 r1587  
    265265  g_free(str);
    266266
     267  gtk_window_set_role( GTK_WINDOW( wind ), "tr-info" );
    267268  gtk_widget_set_name(wind, "TransmissionDialog");
    268269  gtk_table_set_col_spacings(GTK_TABLE(table), 12);
     
    506507    gtk_window_set_resizable( GTK_WINDOW( wind ), TRUE );
    507508    gtk_box_pack_start_defaults( GTK_BOX( GTK_DIALOG( wind )->vbox ), frame );
     509    gtk_window_set_role( GTK_WINDOW( wind ), "tr-files" );
    508510
    509511    /* set up the callback data */
  • trunk/gtk/msgwin.c

    r1504 r1587  
    112112  g_signal_connect( clear, "clicked", G_CALLBACK( doclear ), NULL );
    113113  g_signal_connect( menu, "changed", G_CALLBACK( changelevel ), NULL );
     114
     115  gtk_window_set_role( GTK_WINDOW( win ), "tr-messages" );
    114116
    115117  gtk_widget_show_all( win );
  • trunk/gtk/tr_prefs.c

    r1504 r1587  
    325325    self->disposed   = FALSE;
    326326
     327    gtk_window_set_role( GTK_WINDOW( self ), "tr-prefs" );
    327328    title = g_strdup_printf( _("%s Preferences"), g_get_application_name() );
    328329    gtk_window_set_title( GTK_WINDOW( self ), title );
  • trunk/gtk/tr_window.c

    r1515 r1587  
    213213    gtk_container_add( GTK_CONTAINER( self ), vbox );
    214214    gtk_window_set_title( GTK_WINDOW( self ), g_get_application_name());
     215    gtk_window_set_role( GTK_WINDOW( self ), "tr-main" );
    215216}
    216217
Note: See TracChangeset for help on using the changeset viewer.